Hi, The following code works in FF but generates errors in IE6. I'm completely stumped - any feedback appreciated...
------------------------------------------------------------ <script type="text/javascript"> var menuitems = { "home" : "home.html" } function openPage(item) { // this is what I need to do, works in FF alert(menuitems.eval(item)[0]); // this works in IE and FF - returns 'home' // (without the quotes) alert(item); // this works in FF - returns 'home.html' (without quotes) // generates error in IE6 - 'Object doesn't support this // property or method' alert(menuitems.eval(item)); } </script> <h1>Using eval on a JSON array in IE6</h1> <a href="javascript:openPage('home')">home</a> ------------------------------------------------------------