Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Exts filefield IE8 Spring 3 (Exception thrown not caught) Line: 4898 extjs-all-debug

  1. #11
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    From what I've seen so far there's nothing wrong with your request, the problem is in the response.

    What I'd really like is to see the response and headers from the Net tab.

    As far as I can tell from those screenshots (though they aren't enough to be definitive) your response is totally wrong. It seems to be a URL wrapped in PRE tags. Obviously that will fail when it's run through the JSON decoder.

  2. #12
    Sencha User mkariti's Avatar
    Join Date
    Aug 2011
    Posts
    92
    Vote Rating
    0
      0  

    Default

    Hi skirtle,
    Many thaks once again.
    I fainally got it to work but do have a few othert questions.
    However, I do have other problem such as in case of internal (404 or 500) error, the response is not directed to the failure section.
    Any Idea?
    Many thanks
    mkariti

  3. #13
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    This is documented, though you could be forgiven for not finding it:

    http://docs.sencha.com/ext-js/4-0/#!...ata.Connection

    See the last paragraph of the intro docs.

    Your best bet is to treat errors as 200s but to include something in the JSON response to mark it as an error. Many people use the success property as a flag for this.

  4. #14
    Sencha User mkariti's Avatar
    Join Date
    Aug 2011
    Posts
    92
    Vote Rating
    0
      0  

    Default

    Many thanks skirtle. Thats exactly what im going to do!
    Cheers
    mkariti

Page 2 of 2 FirstFirst 12

Posting Permissions

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