[jQuery] jQuery.ajax() HTTP ºñµ¿±â µ¥ÀÌÅÍ ±³È¯ |
|
|
 |
9³â Àü |
jQuery.ajax({
type : "POST", // Àü¼Û ¹æ½Ä
url : "default.asp", // Àü¼Û URL ÁÖ¼Ò
data : $("#frm").serialize() // form°ª µ¥ÀÌÅÍ Á÷·ÄÈ ex)a=1&b=2
dataType : "html", // µ¥ÀÌÅÍ ¹Ýȯ Çü½Ä (xml, json, script, text, html)
async : true, // true : ºñµ¿±â Åë½Å , flase : µ¿±âÅë½Å
beforeSend : function(){
//¿äû µÇ±â Àü ½ÇÇà ÇÔ¼ö
},
success : function(data){
//¼º°ø½Ã ½ÇÇà
},
error: function(){
//Àü¼Û ¿¡·¯ ¹ß»ý ½Ã ½ÇÇà ÇÔ¼ö
},
complete : function(){
//success, error ÇÔ¼ö ½ÇÇà ÈÄ ¸¶Áö¸·À¸·Î ½ÇÇà µÊ
}
}); |
|
̵̧ : 460 |
̵̧
¸ñ·Ï
|
|