I got a question, jQuery.load or jQuery.ajax to load data of a database -


i wonder 1 perform better.

thanks.

well, aren't alternatives... have different meanings, uses , purposes.

$.ajax all-purpose jquery ajax function. other ajax functions use it, including .load. if want other load resource using ajax, have write code yourself.

.load uses $.ajax internally resource, loads resource document, using selection on load called.

if want latter, use load. if want else, use $.ajax or 1 of other jquery ajax functions.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -