Prototype Ajax 기본 문법

Posted at 2007/12/11 13:12 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
prototype 에서 사용 되는 Ajax 기본 문법입니다.
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...') }
  });

2007/12/11 13:12 2007/12/11 13:12

http://blueb.net/blog/trackback/986

댓글을 남겨주세요.

[로그인][오픈아이디란?]