1. #1
    Ext User
    Join Date
    Aug 2008
    Location
    Silicon Valley
    Posts
    28
    Vote Rating
    0
    DocSavage is on a distinguished road

      0  

    Default Error on wiki: Difference between Ajax.request and Form.submit

    Error on wiki: Difference between Ajax.request and Form.submit


    Hi,
    After hitting my head against the wall for a while, I discovered the following piece of information:
    http://www.extjs.com/learn/Ext_FAQ_F...ax_requests.3F
    after looking over this thread:
    http://www.extjs.com/forum/showthread.php?t=62483

    The problem is some documentation out there seems incorrect. For example:
    http://www.extjs.com/learn/Manual:RESTful_Web_Services

    I felt the above learn page was very helpful, but it is telling people Ajax.request acts like this:
    Code:
    Ext.Ajax.request({
     url: '/some_resource',
     method: 'POST',
     form: 'my-form-id',
     success: function(){alert('Must have been 2xx http status code')},
     failure: function(){alert('Must have been 4xx or a 5xx http status code')},
    });
    This is clearly not the case according to the FAQ, so I suggest modifying that page or putting a link to the FAQ in it. Is this an Extjs 2 vs 3 issue?

    Regards,
    Bill

  2. #2
    Sencha User
    Join Date
    Jul 2013
    Posts
    14
    Vote Rating
    2
    milieu is on a distinguished road

      0  

    Default


    Is it possible to do this without using the form id...

    I'm dealing with a lot of anonymous forms here.

  3. #3
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,663
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    this topic was very old. unless you are dealing with ext js 2 or the first versions of ext js 3, there should be no problem.

    for ext js 4, take a look at:
    http://docs.sencha.com/extjs/4.2.1/#...-method-submit
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  4. #4
    Sencha User
    Join Date
    Jul 2013
    Posts
    14
    Vote Rating
    2
    milieu is on a distinguished road

      0  

    Default


    Thanks tobiu,

    I figured it out in the end ^^

  5. #5
    Sencha User
    Join Date
    Aug 2013
    Location
    London
    Posts
    10
    Vote Rating
    -1
    ShariWilkins is an unknown quantity at this point

      0  

    Default


    I guess you should give it a try other way around.
    .

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar