Skip to content Skip to sidebar Skip to footer

Javascript In Asp .net

I'm getting WebResource error in my asp.Net page: var __pendingCallbacks = new Array(); Microsoft JScript runtime error: 'Array' is undefined I have no idea what might cause this

Solution 1:

This happens because we have this setup

<collapsiblepanel><iframe><script></script></iframe>
</collapsible panel>

When the page loads, the panel being shown forces the script inside the iframe to be dragged through the DOM before the javascript libraries are loaded. This seems to be a change in that was made for IE9. I have yet to fine a way around this issue but at least I know the cause. A temporary workaround is to force the compatibility of the page to IE8 using a meta tag in case anybody else runs into this issue.

Solution 2:

The problem was fixed when I removed the SRC attribute from the iframe and I added onOpen event to jQuery's dialog:

open: function(){
    document.getElementById("iframename").src = "page.aspx";
}

Post a Comment for "Javascript In Asp .net"