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 User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    548
    Vote Rating
    115
    Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all

      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,118
    Vote Rating
    30
    tvanzoelen has a spectacular aura about 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 User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    548
    Vote Rating
    115
    Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all Tim Toady is a name known to all

      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
    12
    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/