Welcome Guest Search | Active Topics | Sign In | Register

Jscript runtime error wiht TabStrip in IE7 master page Options
Craig
Posted: Thursday, July 17, 2008 1:45:58 PM
Rank: Newbie
Groups: Member

Joined: 3/14/2008
Posts: 5
Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: eventObject

This occurs in IE7 when I put a TabStrip on a content page or on a master page.

Works in Firefox.
eo_support
Posted: Thursday, July 17, 2008 1:57:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,097
Hi,

That almost always has to do with what you have in your master page. Sometimes the master page contains invalid HTML or the content place holder is just place at a place when the TabStrip is rendered, it would form invalid HTML. For example, say the master page is:

Code: HTML/ASPX
<table>
   <tr><td>Hi!</td></tr>
   <asp:ContentPlaceHolder runat="server" id="content">
   </asp:ContentPlacerHolder>
</table>


And the content page is:
Code: HTML/ASPX
<div>There!</div>


The final rendered page will be:

Code: HTML/ASPX
<table>
   <tr><td>Hi!</td></tr>
   <div>There!</div>
</table>


This is invalid. Most browser can tolerate such code, but some browser tolerate it better than others. When JavaScript is run on such objects, the result is mostly unpredictable.

As a way to narrow down and eventually locate the part that causes problem, you can try it without the MasterPage first; Then gradually comment out blocks in your MasterPage and see if the error occurs.

Please let us know if that solves the problem.

Thanks
Craig
Posted: Thursday, July 17, 2008 7:42:16 PM
Rank: Newbie
Groups: Member

Joined: 3/14/2008
Posts: 5
Thanks for your very quick reply.

That wasn't exactly my problem, but it led me in the right direction. I had a javascript reserved word in a script that didn't bother Firefox but caused IE7 to throw an undefined argument exception, not exactly a clue to what was wrong.

Again, thanks for your quick reply. I like your product a lot.
eo_support
Posted: Thursday, July 17, 2008 7:54:08 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,097
Excellent! Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.