Ext.AjaxRequest is always failing in Chrome and Mozilla

  1. #1

    Ext.AjaxRequest is always failing in Chrome and Mozilla

    Hi,

    I'm using the below ajax call to a webservice and this returns a json file. This works perfectly if I use IE. But in Mozilla n Chrome this is always executing failure condition.

    Ext.Ajax.request({
                    url: "xxxxxxxxxxxxxxxx",
                    success: function (response, options) {
                        try {
                              window.visFolders = Ext.util.JSON.decode(response.responseText);
                        }
                        catch (e) {
                            showException(e, 'parsing vis folder tree');
                        }
                    },
                    failure: function () {
                        alert("Ajax request failed");
                    }
                });
    This works in all browsers if the app is published and hosted in IIS. Please advise on this...
    Last edited by geoffrey.mcgill; Jul 14, 2011 at 6:04 AM. Reason: please use [CODE] tags
  2. #2
    What response from webservice?
    DirectMethod/DirectEvent uses Ext.Ajax and all works fine with webservice
    https://examples1.ext.net/#/Events/D...ds/WebService/
  3. #3
    Hi,

    Thanks for your reply.

    Response is a json file . The request is a delphi service. The url has some quesry string... The URL returns the json file.

    DirectMethod.request is also failing.


    Regards,
    Anu J
  4. #4
    Hi,

    What you mean "json file"?
    Please post response from Fiddler or FireBug
  5. #5
    attached the fidler screenshots..

    It works fine in IE8.. but when using Chrome getting this issue.

    Click image for larger version. 

Name:	Working in IE.jpg 
Views:	157 
Size:	94.8 KB 
ID:	2981Click image for larger version. 

Name:	Chrome.jpg 
Views:	211 
Size:	92.5 KB 
ID:	2982
  6. #6
    Screenshot shows that you request cross domain url, ajax request doesn't support cross domain requests
    I am not show how it works under IE for you but it should not work

Similar Threads

  1. [CLOSED] iframe onFocus failing w/Chrome & Firefox
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 12, 2012, 8:08 AM
  2. Replies: 0
    Last Post: Jun 22, 2011, 1:52 PM
  3. [CLOSED] Changind Column Header Text in AjaxRequest
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Feb 02, 2010, 2:34 PM
  4. Replies: 2
    Last Post: May 29, 2009, 10:41 AM
  5. #{Hidden1}.getValue() failing
    By Juls in forum 1.x Help
    Replies: 4
    Last Post: Mar 20, 2009, 3:40 PM

Posting Permissions