$(‘#div1’).load(url, {
id1=ident1,
id2=ident2
}, function() {
// Foo
})
is doing a post instead of what I thought should be a get. Is there a way to make it a get?
Thanks,
rod.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the documentation “The POST method is used if data is provided as an object; otherwise, GET is assumed.“
Use jQuery.param to serialize the data first.
Just noticed your example is syntactically invalid as well. Object literals use “:”, not “=”, to relate a object key to its value.