php generate HTML, but being called by javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • c.l.rogers@cox.net

    php generate HTML, but being called by javascript

    I've been searching for few days trying to find an answer to my
    question... hopefully I ofund the right place to help me out!

    What I am trying to do is use javescript inside column of a <table>
    tag, to call a php file that will fill in the contents for my column
    and the html page will then finish loading... For example:

    <html>
    <tr>
    <td valign="top">
    <script type="text/javascript"
    src="dir/external.php?"> </script>
    <script language="" type="text/javascript">
    <!--
    for (x = 0; x < 10; x++)
    {
    document.writel n("<a href=data returned from php call >
    </a>");
    }
    //-->
    </script>
    </td>
    </tr>
    </html>

    To give you all a background of what I am doing is, I am using
    MagpieRSS to parse out my XML file and I would like to have my php file
    generate an array of data from the parsed file to return back to the
    javascript in my HTML file and use it to fill in my column... make
    sense?

    Thanks in advance for any help!

    Regards,

    Me

Working...