Forum Moderators: coopster

Message Too Old, No Replies

any good way to query a script and display the result

without leaving the page?

         

partha

12:24 am on Mar 5, 2005 (gmt 0)

10+ Year Member



say I have a page and the user enters something and hits "submit". is there any way to send that something to a php script and get the result back from it and then display it on the original page ALL "IN THE BACKGROUND"?

...using php and javascript and anything else that's very widespread

hughie

12:40 am on Mar 5, 2005 (gmt 0)

10+ Year Member



you can post to an iframe and have the iframe change, you can do this without the user even knowing it's an iframe.

Trouble is iframes aren't 100% compatable.

hughie

Timotheos

12:41 am on Mar 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is something like Sajax [modernmethod.com] what you have in mind?

Tim

partha

2:10 am on Mar 18, 2005 (gmt 0)

10+ Year Member



yeah sajax is fine except I just can't get it working. There is very little documentation and the example files have numerous errors that actually prevent them from working.

Also I would prefer something where I can keep each part of the PHP application in its own file. Sajax requires putting all the program logic in the same file as shows the output. It also has some strange requirements for the javascript part of it. All in all, I just don't like Sajax.

Is there a similar alternative out there that's possibly easier to use?

Also, which browers and versions support IFRAME? If it has widespread support, I might just go that route.

dcrombie

9:38 am on Mar 18, 2005 (gmt 0)



Try XMLHttpRequest [google.com].