views:

116

answers:

2

So I am using "load" functions of jQuery to use ajax on my pages.

Can anyone write a small snippet of code using jquery load (or any ajax function which you think is the best) ? What I do is make a form, onsubmit pass to js, further using GET pass values into the load function and return false; though this works I am sure this is not the best way. Also this does NOT work in Opera.

All/any help is appreciated!

A: 

Here's a good tutorial about ajax with jquery/php.

OneOfOne
+1  A: 

It sounds like what you're trying to do is submit a form to an existing server-side script using AJAX. If so, consider using the jQuery form plugin. It will let you very easily make an existing form submit via AJAX.

If that's not your goal, we'll need a lot more detail about what — specifically — you're trying to accomplish.

VoteyDisciple