2013-07-25 126 views
-1
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> 
<script type="text/javascript"> 
    function postolayi(){ 
     $.ajax({ 
      type: 'POST', 
      url: 'yorum_gonder.php', 
      data: $('#form1').serialize(), 
      success: function(cevap){ 
       $("#sonuc").html(cevap) 
      } 
     }) 
    } 
</script> 
<form id="form1"> 
    <label for="textfield">Name</label> 
    <input id="textfield" type="text" name="ad" /> 
    <input onclick="postolayi();" type="button" /> 
</form> 

爲什麼這段代碼不能在facebook應用上工作?請幫助jquery ajax在facebook上的失敗呼叫

回答