jdevloper
01-25-2009, 12:01 PM
Hi All,
Can anyone tell me how to iterate javascript map dynamically like java.util.hashmap
Thanks in advance
Can anyone tell me how to iterate javascript map dynamically like java.util.hashmap
Thanks in advance
|
||||
How to dynamically iterate javascript mapjdevloper 01-25-2009, 12:01 PM Hi All, Can anyone tell me how to iterate javascript map dynamically like java.util.hashmap Thanks in advance oesxyl 01-25-2009, 12:07 PM Hi All, Can anyone tell me how to iterate javascript map dynamically like java.util.hashmap Thanks in advance probably yes, but in java not javascript forum. :) Ask one of the moderators to move your post in java forum please. regards jdevloper 01-25-2009, 12:24 PM My intension is to know map in javascript.because i face a problem like my server data returns to my javascript as a map which inturn has map of maps .so pont is i retrieve value from this map and show it into gui. sorry if my intension is wrong oesxyl 01-25-2009, 01:06 PM My intension is to know map in javascript.because i face a problem like my server data returns to my javascript as a map which inturn has map of maps .so pont is i retrieve value from this map and show it into gui. sorry if my intension is wrong maybe my assumption was wrong, :) I don't know java so java.util.hashmap don't tell me too much, :) Will be better if you give more details about your problem and let's hope that somebody else, who know both java and javascript, will help you, :) best regards jkd 01-25-2009, 07:20 PM You can iterate through the members of an object via: for (var key in object) { alert([key, object[key]].join("\n\n")); } |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum