Accessing arrays(hashmap) in javascript -


im populating hashmap this

var temp = ${task.get(i).id}; wf.map[temp]=${task.get(i).isconnected()};   

while accessing map, im accessing in way

   var temp = taskid.value;    var connected= this.map[temp]; 

here, im getting connected undefined. in case, temp = "00000114000000000002". accessing this.map["00000114000000000002"} gives me same problem.

instead if access this.map[00000114000000000002] , works absolutely fine.

i tried typecast temp number, int , no luck.

how deal issue?


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -