new Ajax.Request('/some_url',
{
method:'get',
parameter:'param1=value1¶m2=value2',//or $('form').serialize()
onSuccess: function(transport){
var response = transport.responseText || "no response text";
alert("Success! \n\n" + response);
},
onFailure: function(){ alert('Something went wrong...') }
});
Home // Blog
Home // Notice
Home // Tag Log
Home // Location Log
Home // Media Log
Home // GuestBook
Prototype Ajax 기본 문법
Posted at 2007/12/11 13:12 //
in 웹프로그래밍™/Ajax, JSON, XML,RSS //
by