|
Rank: Member Groups: Member
Joined: 11/13/2009 Posts: 22
|
Found an ugly bug I think. Took a little while to set up a test page to show this too. Looks like it also shows up only in MSIE but FF has no issues. I searched for "nodetype is null" in your forum and found one other instance of it, but it had to do with your panel.
Mouse off and onto the start/end date field multiple times to reproduce this...it's intermittent which is why I didn't notice it before...I happened to move my mouse over the toolbar and saw it.
Error msg: ====================
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; T312461; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8) Timestamp: Mon, 16 Nov 2009 17:00:19 UTC
Message: 'nodeType' is null or not an object Line: 6 Char: 17366 Code: 0 URI: http://localhost/SkyServe/eo_web.ashx?id=cec5e289-0512-4015-a73f-4e3d9064f315
====================
Sample code:
==================== <%@ Page Language="C#" %> <%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e) { System.Web.UI.Control customStartItem = ToolBar1.Items[0].CustomItemInstance; System.Web.UI.Control customEndItem = ToolBar1.Items[1].CustomItemInstance; System.Web.UI.Control customOtherItem = ToolBar1.Items[2].CustomItemInstance; System.Web.UI.WebControls.TextBox txtStartDate = (System.Web.UI.WebControls.TextBox)customStartItem.FindControl("txtStartDate"); System.Web.UI.WebControls.TextBox txtEndDate = (System.Web.UI.WebControls.TextBox)customEndItem.FindControl("txtEndDate"); DropDownList Timespan = (DropDownList)customOtherItem.FindControl("Timespan"); Image imgStartSel = (Image)customStartItem.FindControl("imgStartSel"); Image imgEndSel = (Image)customEndItem.FindControl("imgEndSel");
txtStartDate.Text = DateTime.Now.ToString(); txtEndDate.Text = DateTime.Now.ToString(); imgStartSel.Visible = false; imgEndSel.Visible = false; ToolBar1.FindItem("Graph").Visible = false; } </script>
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <eo:ToolBar id="ToolBar1" SeparatorImage="00100204" BackgroundImage="00100203" Width="100%" BackgroundImageRight="00100202" runat="server"> <DownStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 12px; PADDING-BOTTOM: 1px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 3px; BORDER-BOTTOM: #335ea8 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffe1ac"></DownStyle> <HoverStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 3px; FONT-SIZE: 12px; PADDING-BOTTOM: 2px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 2px; BORDER-BOTTOM: #335ea8 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffe1ac"></HoverStyle> <NormalStyle CssText="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-SIZE: 12px; PADDING-BOTTOM: 3px; CURSOR: hand; BORDER-TOP-STYLE: none; PADDING-TOP: 3px; FONT-FAMILY: Tahoma; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"></NormalStyle> <ItemTemplates> <eo:ToolBarItem Type="Custom"> <NormalStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" /> <HoverStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" /> <DownStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" /> </eo:ToolBarItem> <eo:ToolBarItem Type="DropDownMenu"> <NormalStyle CssText="background-image:url('00100205');background-position-x:right;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;cursor:hand;padding-bottom:3px;padding-left:4px;padding-right:4px;padding-top:3px;" /> <HoverStyle CssText="background-color:#ffe1ac;background-image:url('00100206');background-position-x:right;border-bottom-color:#335ea8;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#335ea8;border-left-style:solid;border-left-width:1px;border-right-color:#335ea8;border-right-style:solid;border-right-width:1px;border-top-color:#335ea8;border-top-style:solid;border-top-width:1px;cursor:hand;padding-bottom:2px;padding-left:3px;padding-right:3px;padding-top:2px;" /> <DownStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 4px; BACKGROUND-POSITION-X: right; BACKGROUND-IMAGE: url(00100206); PADDING-BOTTOM: 1px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 3px; BORDER-BOTTOM: #335ea8 1px solid; BACKGROUND-COLOR: #ffe1ac" /> </eo:ToolBarItem> </ItemTemplates> <Items> <eo:ToolBarItem Type="Custom"> <CustomItem> <div style="white-space: nowrap;"> <asp:Literal ID="lblStartDate" runat="server" Text="*Start:" /><asp:TextBox ID="txtStartDate" runat="server" Enabled="false" style="vertical-align:middle; font-size: 8pt;" Columns="12" /><asp:Image runat="server" ImageUrl="images/calendar_big.gif" width="20" Height="20" style="vertical-align:middle" ID="imgStartSel" /> </div> </CustomItem> </eo:ToolBarItem> <eo:ToolBarItem Type="Custom"> <CustomItem> <div style="white-space: nowrap;"> <asp:Literal ID="lblEndDate" runat="server" Text="*End:" /><asp:TextBox ID="txtEndDate" runat="server" Enabled="false" style="vertical-align:middle; font-size: 8pt;" Columns="12" /><asp:Image runat="server" ImageUrl="images/calendar_big.gif" width="20" Height="20" style="vertical-align:middle" ID="imgEndSel" /> </div> </CustomItem> </eo:ToolBarItem> <eo:ToolBarItem Type="Custom"> <CustomItem> <div style="white-space: nowrap;"> <asp:Literal ID="lblTimespan" runat="server" Text="*Other:" /><asp:DropDownList ID="Timespan" runat="server" style="vertical-align:middle; font-size: 8pt;" AutoPostBack="true"> <asp:ListItem Text="Custom" Value="customRange" /> <asp:ListItem Text="Current Day" Value="currentDay" Selected="true" /> <asp:ListItem Text="Last Day" Value="pastDay" /> <asp:ListItem Text="Last Week" Value="pastWeek" /> <asp:ListItem Text="Last Month" Value="pastMonth" /> <asp:ListItem Text="Past 3 Months" Value="past3Month" /> <asp:ListItem Text="Past 6 Months" Value="past6Month" /> <asp:ListItem Text="Past Year" Value="pastYear" /> </asp:DropDownList><asp:HiddenField ID="HiddenField2" runat="server" /> </div> </CustomItem> </eo:ToolBarItem> <eo:ToolBarItem CommandName="Graph" ImageUrl="00101069" Text="Graph" ToolTip="Update Graphs"> </eo:ToolBarItem> </Items> </eo:ToolBar> </div> </form> </body> </html>
|
|
Rank: Member Groups: Member
Joined: 11/13/2009 Posts: 22
|
this is obviously obfuscated JS but the eoweb.js code is: else{var b=a.target;while(b.nodeType!=1)
b is "undefined" a is a mouseover event in MSIE that has no target member which is why b is "undefined"...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Thanks for the additional information. MSIE has no target member but the code should not reach here under normal circumstance. It is very easy for us to patch around it but we would like to look deeper to see why the code has reached here in your test page but not in other cases.
BTW: It appears that so far you have been exclusively using the free toolbar control. Our official support policy is that we do not provide free support on free controls/features. However we enjoyed working with you since you are obviously a very experienced Web developer. We would appreciate if you can consider purchasing a license because that’s what eventually helps us to build a solid product.
Thanks
|
|
Rank: Member Groups: Member
Joined: 11/13/2009 Posts: 22
|
The plan is to buy the eoweb package, but we're in the "make sure everything we need works" evaluation phase. Our toolbar needs dictate we need to purchase it anyways because we need a dropdown menu which isn't included in the free version...jquery has no decent toolbar plugin. I'm hooking up the tabstrip to our app now and have to test out the dialog functionality (we've been using the jquery ui dialog so far, but were wondering what else eoweb provides), so unfortunately, you'll probably get a few questions from me on those ;-)
If there's a workaround for this toolbar quirk, please let me know. The quick also doesn't show up if you comment out all the asp.net c# code on that page. The act of hiding part of the custom item I think is what's causing this.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great to hear that. We have about two dozen controls. So feel free to let us know if you have any questions on those. I see that you wish to enter date/time value with the toolbar, we have a decent DatePicker control as well.
The toolbar issue is very much like what you have observed ---- it appears to be caused by hiding part of the custom item. However we would like to confirm that with a simple test page without involving any of our control/code so that we can be sure it is not related to anything else. Once we confirm that, we can either patch the code or if a simple verifiable workaround exists, to post a workaround.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have looked into the issue and it appears to be an IE bug. Unfortunately there doesn't appear to be an easy workaround. As a result, we are changing our code to work around the issue. We will provide you a new test build once that is done.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/13/2009 Posts: 22
|
smelled like an IE bug to me as well since FF had no problems ;-)
Please post a test build version# on this thread when it's available in case anyone w/ an old version searches for this. Thanks for the quick response :-)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build (2009.0.38) that should eliminate this issue. Please see your private message for download location.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/13/2009 Posts: 22
|
Fix confirmed. Thanks for the quick turnaround.
|
|