Guest Rey Shah Posted January 11, 2012 Share Posted January 11, 2012 We have an applciation written in VB.NET 2.0. Most html elements have behaviours associated with them. The behavior file shave the statement <PUBLIC:ATTACH event="ondetach" .... /> When a page is opened there are no errors but if we postback to same page we get a script error line 1 char 1 code 0 and we cannot debug it since it does not show source code. Finally it was determined that the Attach of ondetach event was causing the problem in IE9 When commented code works fine in IE9. But the same code works well in IE7 and IE8. The ondeatch fires of a jscript method which cleans up event heandlers on the element. Any ideas? MS says the PUBLIC:ATTACH event="ondetach" is supported in .htc files in IE9 Also if we have the option DISABLE Script debugging in IE option checked the error is not shown but if we open an IE window using showModalWindow the modal window ignores this option set in IE settings. This to me seems like a bug in IE9 IE9 eats the error if the IE window is no modal but does not obey the setting if window is modal Thanks Amrish Continue reading... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.