Results 1 to 2 of 2

Thread: Ajax problems, status = 0

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Vote Rating

    Default Ajax problems, status = 0

    I'm trying to do an Ajax call to a .html page to get the content of it. But for some reason it gives me the following error:

    XMLHttpRequest cannot load Origin null is not allowed by Access-Control-Allow-Origin.

    faq.js:11server-side failure with status code 0

    When i browse directly to the url then i see that the url is valid and the content is displayed in my webbrowser. Any idea why i can't retrieve the data with my Ajax call??

                url: '',
                success: function(response, opts) {
                failure: function(response, opts) {
                    console.log('server-side failure with status code ' + response.status);

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Ajax requests are prohibited by the browser to go across different origins. The only workaround is if you are wanting to transport JSON
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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.

Posting Permissions

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