how to send jsonp request to server in sencha 2.0 -


i error repeatedly

uncaught syntaxerror: unexpected token : ajax.php

{"error":"server error</b>: method file_get_contents unable 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 error retrieving weather.');             }           }     }); }}, 

you have disable browser's web security

then ok


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -