Ajax page load. help appreciated
Moderator: General Moderators
-
scarface222
- Forum Contributor
- Posts: 354
- Joined: Thu Mar 26, 2009 8:16 pm
Ajax page load. help appreciated
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
Yeah, very easy. Check out JQuery for the super easy way to do AJAX
-> http://docs.jquery.com/Ajax/jQuery.post
-> http://docs.jquery.com/Ajax/jQuery.post
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
-
scarface222
- Forum Contributor
- Posts: 354
- Joined: Thu Mar 26, 2009 8:16 pm
Re: Ajax page load. help appreciated
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?