loop through json object with javascript

  1. #1

    loop through json object with javascript

    Hi All,

    From the example FormPanel-Basic

    https://examples1.ext.net/#/Form/FormPanel/Basic/

    When click Get Values... Button and select Object, It will alert message

    {"CompanyField":"General Electric Company","PriceField":"34.14","ChangeField":"-0.08","PctChangeField":"-0.23","lastChange":"9/1/2013"}
    I would like to know how to loop through object with javascript for get KEY / VALUE.

    In my project. I create FormPanel with dynamic control that KEY field name generate from ID from database.

    eg. email_id19_sid55. So, I did not know exact field name and want to check just has field email_ before save.

    Thank you
  2. #2
    Hello,

    Maybe the following StackOverflow thread can help,

    http://stackoverflow.com/questions/7...nowing-the-key
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 3
    Last Post: Jun 26, 2012, 2:32 PM
  2. Replies: 0
    Last Post: Oct 21, 2011, 3:04 AM
  3. JSON Object to Store
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Oct 11, 2011, 8:44 PM
  4. Replies: 23
    Last Post: Jul 15, 2011, 6:22 PM
  5. [CLOSED] javascript - Loop in Content
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 23, 2011, 8:49 PM

Tags for this Thread

Posting Permissions