script to send form info but does not reload page

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
izzysanime

script to send form info but does not reload page

Post 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
cyberman

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

Post 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 ;).
izzysanime

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

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

write your form in ajax... then it'll work.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
cyberman

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

Post 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
Post Reply

Return to “The Lounge”