Hi ,
I'm calling some Javascript function to write value in the layer. I'm trying to achieve it by using eval() function. Please look at the code below:
[CODE=javascript]function showMore(tempLa yerNum, tempLayerName) {
var temp = "step"+tempLaye rNum+"More".toS tring();
eval(temp).writ e("Hi");
}
[/CODE]
This is very simple code but still not working. Some other place same type of statement is working. Any idea what mistake I'm making here...
Regards,
Haresh
I'm calling some Javascript function to write value in the layer. I'm trying to achieve it by using eval() function. Please look at the code below:
[CODE=javascript]function showMore(tempLa yerNum, tempLayerName) {
var temp = "step"+tempLaye rNum+"More".toS tring();
eval(temp).writ e("Hi");
}
[/CODE]
This is very simple code but still not working. Some other place same type of statement is working. Any idea what mistake I'm making here...
Regards,
Haresh
Comment