Output HTML page through javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay Patel

    Output HTML page through javascript

    Hello out there,
    If anyone can help me with this situation, I would be very
    grateful. I have to access an XML feed that is currently being
    accessed, parsed and turned into the target HTML via a .php page,which
    then uses a simple "echo" command to send the ASCII HTML back. I would
    like to be able take that HTML, read it, and embed it into an .htm or
    ..shtm page. I am thinking that javascript might be a way to go with
    this. Is there a way, through javascript, to load the .php page, get
    the resulting HTML, and have it become a part of the original .html or
    ..shtm page so it will be executed?

    -Jay
    (patel@cs.utk.e du)
  • Martin Honnen

    #2
    Re: Output HTML page through javascript



    Jay Patel wrote:

    [color=blue]
    > If anyone can help me with this situation, I would be very
    > grateful. I have to access an XML feed that is currently being
    > accessed, parsed and turned into the target HTML via a .php page,which
    > then uses a simple "echo" command to send the ASCII HTML back. I would
    > like to be able take that HTML, read it, and embed it into an .htm or
    > .shtm page. I am thinking that javascript might be a way to go with
    > this. Is there a way, through javascript, to load the .php page, get
    > the resulting HTML, and have it become a part of the original .html or
    > .shtm page so it will be executed?[/color]

    HTML provides the tools
    <iframe src="whatever.p hp"><a href="whatever. php">whatever</a></iframe>

    Of course if you are using PHP yourself on the server I don't understand
    why you are looking for a (client-side?) JavaScript solution.

    --

    Martin Honnen


    Comment

    Working...