PDA

View Full Version : Submit a form without page refresh


levani
05-24-2009, 09:29 PM
I'm looking for an ajax script from submitting a form without page refresh. The script should have these abilities:

1. Submit form without page refresh
2. Display loading icon (or some text) while the script processing the code
3. Display different message if the form has submitted successfuly, and different if it doesn't.

Can anyone help?

hthought
05-25-2009, 01:53 AM
Take a look here :

http://www.devarticles.com/c/a/XML/XML-in-the-Browser-Submitting-forms-using-AJAX/1/

mlse
05-27-2009, 01:28 PM
What you are looking for ... is the whole point and essence of AJAX!

I would therefore suggest that you look at some AJAX tutorials.

Here's a good starting point: http://www.w3schools.com/Ajax/Default.Asp

I would suggest that you get the basics working first, then worry about fancy things like loading icons and messages. If you try to do it all in one go, I guarantee you will end up confusing the heck out of yourself!