JavaScript with Collections

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praveenkumarvpk
    New Member
    • Oct 2007
    • 22

    JavaScript with Collections

    Is there any chance to use collection in javascript. I want to store information in the form of (n rows and 3 columns). I can use Array() to store the information but i'm not able to get that array using request.getPara meters() since it retuns a single dimantional array. So for that i wan to use collection like List and Map.

    So please Help me to get this solution....! Please quick...
  • praveenkumarvpk
    New Member
    • Oct 2007
    • 22

    #2
    please guys i need help

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      hi ...

      example: 2 rows and 2 columns could be written with js object notation the following way:

      [CODE=javascript]var map = {
      row1: { col1: 'value11', col2: 'value12' },
      row2: { col1: 'value21', col2: 'value22' }
      };
      [/CODE]
      kind regards

      Comment

      Working...