javascript the OO way - permission denied error on IE
<p>I am trying some javascript like below:</p>

<pre><code>var obj = {
    resetCss: function(){
        $("#canvas &gt; div").click{function(){
             val = $(this).attr("id"); //I get the expected value
             obj.setCss(val);
         });
    },
    setCss: function(inp){
       alert (inp);
    },
    getCss: function(){

    }
};
</code></pre>

<p>Mark up:</p>

<pre><code>
    &lt;div id="canvas"&gt;
    &lt;div id="can1"&gt;Canvas 1&lt;/div&gt;
    &lt;div id="can2"&gt;Canvas 2&lt;/div&gt;
    &lt;div id="can3"&gt;Canvas 3&lt;/div&gt;
    &lt;div id="can4"&gt;Canvas 4&lt;/div&gt;
    &lt;div id="can5"&gt;Canvas 5&lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>This one works well on FF, Chrome, Safari etc. Only on IE browsers when the script hits "obj.setCss(val);" I get an error "permission denied" and the script execution terminates. Can someone help me with this please?</p>

<p>Thanks,
L</p>
