Page 1 of 1

script to send form info but does not reload page

Posted: Tue Sep 25, 2007 3:48 pm
by izzysanime
Hi,

i was wondering if there is a script that can send a form but not actually go to another page. 

When the user hits the submit button, the script sends the data without actually leaving the page, nothing reloads, then the form is blank again. Maybe a thank you text appears at the bottom. Does that make any sense?

Either that or one that can re-load just the form parts of my web page. There are other parts of the page, like images, and other navigational items that would not need to re-load. 

Thanks for your help.

Thanks,
Josh

Re: script to send form info but does not reload page

Posted: Tue Sep 25, 2007 5:17 pm
by cyberman
izzysanime wrote: Does that make any sense?
It makes sense. Think it could be done with some ajax.

http://www.xajaxproject.org/

And the best - Xajax is provided in /libs folder by default ;).

Re: script to send form info but does not reload page

Posted: Fri Sep 28, 2007 1:15 am
by izzysanime
Hi,

Thats really close, but It already has a script to get the info, the issue is that the browser has to refresh and that blanks the page, so i was wondering if the was a way to stop the blanking and just load it exactly the same way its done on XAJAX site where it does not blank the entire page when i click on "click me"

Thanks,
Josh

Re: script to send form info but does not reload page

Posted: Fri Sep 28, 2007 1:17 am
by calguy1000
write your form in ajax... then it'll work.

Re: script to send form info but does not reload page

Posted: Fri Sep 28, 2007 12:50 pm
by cyberman
izzysanime wrote: the issue is that the browser has to refresh and that blanks the page, so i was wondering if the was a way to stop the blanking and just load it exactly the same way its done on XAJAX site where it does not blank the entire page when i click on "click me"
Not sure what you mean - cant see a blank page or a page refresh when I click on "Click me" ...

There's a tutorial for processing forms too

http://www.xajaxproject.org/docs/proces ... -xajax.php