Page 1 of 1

Ajax page load. help appreciated

Posted: Fri Apr 10, 2009 3:53 pm
by scarface222
I am new to Ajax and Java and I can't seem to solve this problem. I have a form which uploads pictures and each time a picture is uploaded, the page reloads. Is it possible to make it so the form processes but the page does not reload?

Re: Ajax page load. help appreciated

Posted: Fri Apr 10, 2009 4:21 pm
by s.dot
Yeah, very easy. Check out JQuery for the super easy way to do AJAX
-> http://docs.jquery.com/Ajax/jQuery.post

Re: Ajax page load. help appreciated

Posted: Fri Apr 10, 2009 4:51 pm
by scarface222
Thanks man, but I still do not understand how the function works jQuery.post( url, [data], [callback], [type] ). If i have a form that uploads an image using php for verification. How do I use this function with it. I understand the function is implemented in javascript but how do you relate it to the desired form, and won't it still load the whole page?