-
Remote Ajax request
Remote Ajax request
I have a button where there is an ajax handler:
Ext.Ajax.request({
url: 'http://somedomain.com'
success: function (response, options) {
alert('success')
},
failure: function (response, options) {
alert('failure');
}
});
, the above URL is in other domain from the running page, so it always returns into failure.
How can I call a remote url which is locating in other domain?
-
Sencha - Community Support Team
you don't w/ the current XHR object. You'll need to perform a script tag proxy request, assuming that domain supports STP (or now JSONP)
Similar Threads
-
By robintan in forum Ext 2.x: Help & Discussion
Replies: 2
Last Post: 4 May 2011, 7:02 PM
-
By aj3423 in forum Ext 3.x: Help & Discussion
Replies: 2
Last Post: 26 Jan 2010, 9:18 AM
-
By zhegwood in forum Ext 3.x: Help & Discussion
Replies: 1
Last Post: 6 Aug 2009, 3:28 PM
-
By emkman in forum Ext 2.x: Help & Discussion
Replies: 1
Last Post: 4 Aug 2008, 7:26 AM
-
By flyingpig in forum Ext 1.x: Help & Discussion
Replies: 7
Last Post: 27 Aug 2007, 11:29 PM
Tags for this Thread
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us