2013-05-14 45 views
-1

我會得到這個錯誤一再如何請求發送到JSONP服務器煎茶2.0

未捕獲的SyntaxError:意外的標記:ajax.php

{"error":"Server Error</b>: Method file_get_contents unable to open request body!"}

Ext.data.JsonP.request({ 

        url: 'http://yaksee.com/facebook/ajax.php', 
     callbackKey: 'callback', 
     params: { 

          format: 'json', 


     }, 
     success: function(result) { 





      if (result) { 

     alert('success'); 

        alert(result); 

      } else { 
       Ext.Msg.alert('Error', 'There was an error retrieving the weather.'); 
      } 


     } 
    }); 
}}, 
+0

-1,你的服務器端拋出一個錯誤,有與Sencha Touch無關。 – 2013-05-14 10:33:26

+0

感謝您的回覆。發送請求需要真正的api密鑰嗎? – 2013-05-14 11:50:10

回答

0

必須禁用瀏覽器的Web安全

那麼這將是確定