Tuesday 6 August 2013

What is the Use of .serialize() in JQuery

The .serialize() method creates a text string in standard URL-encoded notation for form elements. $(’#form’).serialize() would have output something like
‘a=1&b=2&c=3&d=4&e=5′ where a,b,c,d,e are name of input elements of form & 1,2,3,4,5 are their correponding values

What is ajax

AJAX is the art of exchanging data with server, and update the parts of a web page without reloading the whole page.

What Default Method is Called While Using .load() Function

.load() is roughly equivalent to $.get, therefore it uses get method to load data

What is the Difference Between $.get and $.post

Results loaded with $.get in internet exoplorer are stored in cache, So you might receive some data refresh problem on UI using $.get method
if you’re fetching data from the server and not changing anything, you should generally use GET, while if you’re changing something you should use POST