Results 1 to 3 of 3

Thread: Question on Cross-domain Ext.Ajax ?

  1. #1
    Sencha User
    Join Date
    Jul 2010

    Question Question on Cross-domain Ext.Ajax ?

    Hello All,
    I am using ext 3.2.1 and trying to use Animal's override for Ext.Ajax mentioned on this thread:

    I have the scenario where i dont have the access to the third party server which is sending back the json data, and hence it arrives without a callback attached to it.
    When trying to use the the override i see, the invalid label error for the json response which looks like:
    My question is i guess is there any way i can intercept this data before it being added to the document as javascript, and add the necessary '(' ')', the reason being since the request was successful and i do see the response back in firebug , i am not that keen on the json format response as such, even if i need to parse the response-text thats fine with me,
    But am not sure, if there any way from client side, to just read the response somehow.
    I also read about the server side solution to use my server as proxy to make the call to the other server,
    can someone elaborate on this technique, i have a servlet present on my server, can i somehow use that to proxy the request, but not sure how to move forward.
    Any help will be much appreciated.

    Thanks a lot,

  2. #2
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Stockholm, Sweden


    No clean way to do that I'm afraid, the problem is that the response isn't wrapped in a callback function. Either create your own server proxy to grab the data or try something like this: (not recommended )

  3. #3
    Sencha User
    Join Date
    Jul 2010


    Thanks Mankz,
    Let me the proxy server side, seems move familiar to me. I did look into the JSONWrapper thing, did quiet understand to how to use. BUt was just a shot, in case it comes handy sometime.
    Any ideas how to use it, just for knowing purposes.


Similar Threads

  1. Cross-domain Ext.Ajax/
    By Animal in forum Ext 2.x: User Extensions and Plugins
    Replies: 105
    Last Post: 3 Jul 2012, 11:37 PM
  2. Cross Domain JSONP call with Ext.Ajax.request
    By cavalleydude in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 16 Nov 2010, 8:32 AM
  3. how to POST data cross domain by Ext.ajax.request?
    By aj3423 in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 23 Mar 2009, 9:34 AM
  4. Add Cross-domain AJAX support to
    By onlysimchas in forum Ext 2.x: User Extensions and Plugins
    Replies: 0
    Last Post: 17 Mar 2008, 11:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts