Show Menu
Cheatography

jQuery ajax([­opt])

data / type / url /dataType /success
timeout / complete / global / ifModified
proces­sData / cache / async / error / beforeSend / conten­tType
$("#­exa­mple_j button­"­).c­lic­k(f­unc­tion(){
var aaa = $("#­exa­mple_j input:­fir­st").val();
var bbb = $("#­exa­mple_j input:­las­t").v­al();
$.ajax({
type: "­POS­T",
url: "­aja­x/l­oad­/po­st.p­hp­",
data: ({a : aaa, b : bbb}),
success: functi­on(­dat­a){­$("#­exa­mple_j span").t­ex­t("Э’Ñ‹­Ð¿Ð­¾Ð»­Ð½Ð­µÐ½Ð¾! " + data);}
});
 

jQuery ready()

jQuery(docum­ent­).r­ead­y(f­unc­tion($) {
// Code using $ as usual goes here.
});
 

jQuery ajax

.ajax()
ajaxPr­efilter()
ajaxSetup()
.getJSON( url [, data] [, succes­s(data, textSt­atus, jqXHR)] )
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          More Cheat Sheets by media_slave