1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    107
    Answers
    4
    Vote Rating
    -1
    sencha.user is an unknown quantity at this point

      0  

    Default Unanswered: Saving JSON response to a variable

    Unanswered: Saving JSON response to a variable


    Hi,

    I have a JSON response like,

    Code:
    {"value":[{"Field":"test1","table":"tablename"},{"Field":"test2","table":"tablename"},{"Field":"test3","table":"tablename"}]
    I want to save tablename to a variable, how do I do that? Please help.

    Thanks!

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,657
    Answers
    433
    Vote Rating
    584
    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


    A json response from:

    1) Ajax request?
    2) Store load?
    3) Form submit?
    4) Other?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    107
    Answers
    4
    Vote Rating
    -1
    sencha.user is an unknown quantity at this point

      0  

    Default


    Hi evant,

    JSON response from AJAX (PHP server side).

Thread Participants: 1