I have a treeview that works great in IE, but it doesnt work in FireFox. It gives an extra space and a link to a __doPostBack function. Here is the source code from each:
from FireFox:
<tr class="FreeText">
<td id="_tdManagersTree" align="left" colspan="4">
<div class="SubHeadingBackground" id="_tvManagers" class="SubHeadingBackground">
<table CELLSPACING="0" CELLPADDING="0" BORDER="0">
<TR>
<TD valign='middle'>
<a href="javascript:__doPostBack('_tvManagers','oncollapse,0')">
<IMG align='top' border='0' class='icon' SRC='/webctrl_client/1_0/treeimages/Rminus.gif'>
</a>
<a href="javascript:__doPostBack('_tvManagers','oncollapse,0')">
<font COLOR="#000000" FACE="Arial" SIZE="2" style="display:inline;font-size:10pt;font-face:Times;text- decoration:none;cursor:hand;overflow:hidden;color:black;background-color:#CFCFCF;filter:none;font- family:Arial;"> Main Managers
</font>
</a>
</TD>
</TR>
<TR>
<TD valign='middle'>
<IMG align='top' border='0' width='19px' height='1px' SRC='/webctrl_client/1_0/treeimages/white.gif'>
<IMG align='top' border='0' class='icon' SRC='/webctrl_client/1_0/treeimages/T.gif'>
<a href="javascript:__doPostBack('_tvManagers','onselectedindexchange,0,0.0')">
<font FACE="Arial" SIZE="2" style="display:inline;font-size:10pt;font-face:Times;text- decoration:none;cursor:hand;overflow:hidden;color:none;background-color:none;filter:none;font- family:Arial;">
<td>
<table width=90% border=0>
<tr>
<td width=42% style=font-family:Arial style=font-size:13>
<a href=" JavaScript:OpenNewWindow( 'AddManager.aspx?GroupID=83&UserID=1088&StartDate=11/7/2005' );">BOB
</a>
</td>
<td width=20% style=font-family:Arial style=font-size:13>11/7/2005
</td>
<td style=font-family:Arial style=font-size:13></td>
</tr>
</table>
</td>
</font>
</a>
</TD>
</TR>
<TR>
<TD valign='middle'>
<IMG align='top' border='0' width='19px' height='1px' SRC='/webctrl_client/1_0/treeimages/white.gif'>
<IMG align='top' border='0' class='icon' SRC='/webctrl_client/1_0/treeimages/L.gif'>
<a href="javascript:__doPostBack('_tvManagers','onselectedindexchange,0,0.1')">
<font FACE="Arial" SIZE="2" style="display:inline;font-size:10pt;font-face:Times;text decoration:none;cursor:hand;overflow:hidden;color:none;background-color:none;filter:none;font-family:Arial;">
<td>
</div>
</td>
</tr>
From IE:
<tr class="FreeText">
<td id="_tdManagersTree" align="left" colspan="4"><?XML:NAMESPACE PREFIX=TVNS />
<?IMPORT NAMESPACE=TVNS IMPLEMENTATION="/webctrl_client/1_0/treeview.htc" />
<tvns:treeview id="_tvManagers" class="SubHeadingBackground" defaultStyle="color:none;background-color:none;filter:none;font-family:Arial;" hoverStyle="text-decoration:underline;color:black;background-color:transparent;filter:none;font-family:Arial;" selectedStyle="color:black;background-color:#CFCFCF;filter:none;font-family:Arial;" selectedNodeIndex="0" HelperID="___tvManagers_State__" systemImagesPath="/webctrl_client/1_0/treeimages/" selectExpands="true" autoSelect="true" onexpand="javascript: if (this.clickedNodeIndex != null) this.queueEvent('onexpand', this.clickedNodeIndex)" oncollapse="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncollapse', this.clickedNodeIndex)" oncheck="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncheck', this.clickedNodeIndex)" onselectedindexchange="javascript: if (event.oldTreeNodeIndex != event.newTreeNodeIndex) this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)">
<tvns:treenode Selected="true" ID="_tnMainManagersRoot">
Main Managers
<tvns:treenode>
<td>
<table width=90% border=0>
<tr>
<td width=42% style=font-family:Arial style=font-size:13>
<a href= "JavaScript:OpenNewWindow( 'AddManager.aspx?GroupID=83&UserID=1088&StartDate=11/7/2005' );">BOB
</a>
</td>
<td width=20% style=font-family:Arial style=font-size:13>11/7/2005
</td>
<td style=font-family:Arial style=font-size:13>
</td>
</tr>
</table>
</td>
</tvns:treenode>
</tvns:treenode>
</tvns:treeview>
</td>
</tr>
Why do they look so different? What am I missing?
Any help would be greatly appreciated.
Thanks,
Shane