Show Menu
Cheatography

jQuery ajax([­opt])

data / type / url /dat­aType /suc­cess
time­out / comp­lete / global / ifMo­dif­ied
proc­ess­Data / cache / async / error / befo­reS­end / cont­ent­Type
$("#­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()

jQue­ry­(d­ocu­men­t).r­ea­dy(­fun­cti­on(­$) {
// Code using $ as usual goes here.
});
 

jQuery ajax

.aja­x()
ajax­Pre­fil­ter()
ajax­Set­up()
.get­JSO­N( url [, data] [, succes­s(data, textSt­atus, jqXHR)] )

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

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