Ajax page load. help appreciated

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
scarface222
Forum Contributor
Posts: 354
Joined: Thu Mar 26, 2009 8:16 pm

Ajax page load. help appreciated

Post 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?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Ajax page load. help appreciated

Post by s.dot »

Yeah, very easy. Check out JQuery for the super easy way to do AJAX
-> 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

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