1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    96
    Vote Rating
    0
    taxidriver is on a distinguished road

      0  

    Exclamation 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?

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    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

  1. Random Ajax request failure (IE only) on grid with remote sorting
    By robintan in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 4 May 2011, 7:02 PM
  2. add a param to all Ext.Ajax.request (tree, store, normal Ajax.request)
    By aj3423 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 26 Jan 2010, 9:18 AM
  3. autoLoad vs Ext.Ajax.request... loadScripts not working w/Ajax.request
    By zhegwood in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 6 Aug 2009, 3:28 PM
  4. Ajax.request removes port from request URL
    By emkman in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Aug 2008, 7:26 AM
  5. Problem in send ajax request :The Ext.Ajax is null or not Object
    By flyingpig in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 27 Aug 2007, 11:29 PM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar