1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Sutton, UK
    Posts
    29
    Answers
    1
    Vote Rating
    0
    lenny87 is on a distinguished road

      0  

    Default Answered: IE8 Ajax Request always fails

    Answered: IE8 Ajax Request always fails


    Hi all,

    New to using Ext and have come across an issue with Ext Ajax requests and IE8. A very simple GET or POST request within IE8 always returns as a failure. However the same code returns success in firefox, safari and even GET requests work fine in IE9.

    Is there anything I am missing? Below is my very simple Ajax request.

    Code:
     Ext.Ajax.request(
                {
                    url: '/php/TestIEReq.php',
                    method: "GET",
                    success: function(response)
                    {
                        Ext.Msg.alert("GET Status","Request was successful");
                    },
                    failure: function(response)
                    {
                        Ext.Msg.alert("GET Status","Request was NOT successful");
                    }
                }
            );
    Any help would be much appreciated. Thanks in advance.

  2. Yes, you will likely need to use JsonP instead which does require a little server side setup but it's super simple in most cases.

  3. #2
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Sutton, UK
    Posts
    29
    Answers
    1
    Vote Rating
    0
    lenny87 is on a distinguished road

      0  

    Default Issue Found

    Issue Found


    Found the problem through testing other peoples IE Ajax examples. What I have found is that having Ext.Ajax.cors = true set in IE makes the AJAX requests not work properly.

    Is this a bug in 4.1.1?

  4. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    IE has no or bad support for CORS. IE10 should have much better support.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #4
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Sutton, UK
    Posts
    29
    Answers
    1
    Vote Rating
    0
    lenny87 is on a distinguished road

      0  

    Default


    thanks for the response, does this mean we should abandon CORS for ie8? many of my clients still use it unfortunately.

  6. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Yes, you will likely need to use JsonP instead which does require a little server side setup but it's super simple in most cases.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  7. #6
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Sutton, UK
    Posts
    29
    Answers
    1
    Vote Rating
    0
    lenny87 is on a distinguished road

      0  

    Default


    thanks for the clarification mitchell. much appreciated

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi