Click to See Complete Forum and Search --> : Evoking web services with JavaScript?


DAC
04-29-2003, 09:59 AM
I would like to be able to execute a PHP page on the server via JavaScript and set the results to a variable. What I'm trying to do is something like Microsoft's RDS -- returning server data to modify the page -- but sans Microsoft. Any idea?

Thanks

AdamGundry
04-29-2003, 10:46 AM
You could create a hidden frame or iframe, and load in it the PHP page. You could then use the innerHTML property of the frame to get the returned data.

Adam

DAC
04-29-2003, 10:57 AM
Great idea! I'll give it a try. It would be easy if elements such as <TD> had a SRC attribute. This functionaliy is something that for a long time I though was missing from HTML.

DAC
04-29-2003, 12:10 PM
Well, that SHOULD have worked. I get the correct data back into the IFRAME, but the innerText attribute returns nothing. I'll keep plugging away...