1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    24
    Vote Rating
    0
    veereshsh is on a distinguished road

      0  

    Post JSON+decode+syntaxerror

    JSON+decode+syntaxerror


    i have a variable sometyhing like this
    var abcd = Ext.util.JSON.decode(act.response.responseText);
    which i am using to refer to the json response object which comes from the servlet.
    but i am getting syntax error in ie(but in mozilla fireFox it sails smoothly)
    Please tell me where i am wrong

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,063
    Vote Rating
    659
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    It's likely you have an extra comma somewhere:

    Code:
    var o = {
       foo: 'bar', //<- ie will barf on this.
    };
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1