1. #1
    Sencha User
    Join Date
    Sep 2010
    Location
    India
    Posts
    40
    Vote Rating
    0
    pratik016 is on a distinguished road

      0  

    Default EXTJS form load from cross domain

    EXTJS form load from cross domain


    Hello Guys,

    I am using EXTJS4 version. when I am trying to load data in form using load method. Its throw me an error like "405 Method Not Allowed".

    We are fetching data from cross domain using MVC API in .Net server.

    its headache to work on cross domain with EXTJS.

  2. #2
    Sencha Premium Member Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Delaware
    Posts
    494
    Vote Rating
    48
    Tim Toady has a spectacular aura about Tim Toady has a spectacular aura about Tim Toady has a spectacular aura about

      0  

    Default


    If you are working cross domain you need to use jsonp. The issue you are having is with browser security, not Ext.
    http://docs.sencha.com/ext-js/4-1/#!...method-request

  3. #3

  4. #4
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,010
    Vote Rating
    23
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    I think then the problem is, how to configure the JSONP with a form load?

  5. #5
    Sencha Premium Member Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Delaware
    Posts
    494
    Vote Rating
    48
    Tim Toady has a spectacular aura about Tim Toady has a spectacular aura about Tim Toady has a spectacular aura about

      0  

    Default


    I haven't looked closely, but I don't think it supports it out of the box. IMO it's easy enough to do a request and just call setValues on the form or something like that.

  6. #6
    Ext Premium Member
    Join Date
    Aug 2010
    Posts
    11
    Vote Rating
    1
    dpatten69 is on a distinguished road

      0  

    Default


    ExtJS also supports this method of cross-origin resource sharing.
    http://www.w3.org/TR/cors/