Dear Experts,<br><br>I would like to have tabs reference and search below of the map like as tabs legend and tools.<br>I've modified sample.js like this <br>============================<br>function ToggleLayerSetVis()<br><br>
{<br><br>&nbsp;&nbsp;&nbsp; var nCount = arguments.length;<br>&nbsp;&nbsp;&nbsp; CWCDHTML_SetLayerVis( arguments[0], true );<br>&nbsp;&nbsp;&nbsp; eval( &quot;document.forms[0].&quot;+arguments[nCount - 1]+&quot;.value='&quot;+arguments[0]+&quot;';&quot; );<br>&nbsp;&nbsp;&nbsp; //document.forms[0].TopTabsLayerActive.value = arguments[0];
<br><br>&nbsp;&nbsp;&nbsp; var i;<br>&nbsp;&nbsp;&nbsp; for( i=1; i&lt;nCount-1; i++ )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CWCDHTML_SetLayerVis( arguments[i], false );<br>&nbsp;&nbsp;&nbsp; }<br><br>}<br><br>// sets the initial visibility in a group of layers on page draw<br>// results in persistant layer visibility between page submits.
<br><br>function LayerSetVisInit()<br><br>{<br><br>&nbsp;&nbsp;&nbsp; var activeLayer = document.forms[0].TopTabsLayerActive.value;<br>&nbsp;&nbsp;&nbsp; var tmpIndex = activeLayer.indexOf( 'TopTabsLayerActive' );<br><br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'TopTabsLayerActive' ) != -1 )
<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'NavToolsLayer', 'ROIToolsLayer', 'TopTabsLayerActive' );<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'NavToolsLayer' ) != -1 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'NavToolsLayer', 'ROIToolsLayer', 'TopTabsLayerActive' );
<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'ROIToolsLayer' ) != -1 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'ROIToolsLayer', 'NavToolsLayer', 'TopTabsLayerActive' );<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; var activeLayer = document.forms[0].SideTabsLayerActive.value;
<br>&nbsp;&nbsp;&nbsp; var tmpIndex = activeLayer.indexOf( 'SideTabsLayerActive' );<br><br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'SideTabsLayerActive' ) != -1 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'LegendLayer', 'OtherToolsLayer', 'SideTabsLayerActive' );
<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'LegendLayer' ) != -1 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'LegendLayer', 'OtherToolsLayer', 'SideTabsLayerActive' );<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'OtherToolsLayer' ) != -1 )
<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'OtherToolsLayer', 'LegendLayer', 'SideTabsLayerActive' );<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; var activeLayer = document.forms[0].ReferenceTabsLayerActive.value;<br>&nbsp;&nbsp;&nbsp; var tmpIndex = activeLayer.indexOf
( 'ReferenceTabsLayerActive' );<br><br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'ReferenceTabsLayerActive' ) != -1 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'ReferenceLayer', 'SearchingLayer', 'ReferenceTabsLayerActive' );<br>&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'ReferenceLayer' ) != -1 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'ReferenceLayer', 'SearchingLayer', 'ReferenceTabsLayerActive' );<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if( activeLayer.indexOf( 'SearchingLayer' ) != -1 )
<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'SearchingLayer', 'ReferenceLayer', 'ReferenceTabsLayerActive' );<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br><br>}<br><br>// sets the initial size in a group of layers on page draw<br>// results in layer sizes responding to map size.
<br><br>function LayerSetSizeInit()<br><br>{<br>&nbsp;&nbsp;&nbsp; var oImage = CWCDHTML_GetImage( 'mapimage' );<br>&nbsp;&nbsp;&nbsp; var imgWidth = oImage.width;<br>&nbsp;&nbsp;&nbsp; var imgHeight = oImage.height;<br><br>&nbsp;&nbsp;&nbsp; // MainMapLayer (w+2, h+2)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'MainMapLayer' );
<br>&nbsp;&nbsp;&nbsp; oLayer.width = imgWidth + 2;<br>&nbsp;&nbsp;&nbsp; oLayer.height = imgHeight + 2;<br><br>&nbsp;&nbsp;&nbsp; // TopTabsLayer (w+20, h)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'TopTabsLayer' );<br>&nbsp;&nbsp;&nbsp; oLayer.width = imgWidth + 20;<br><br>&nbsp;&nbsp;&nbsp; // NavToolsLayer (w+20, h)
<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'NavToolsLayer' );<br>&nbsp;&nbsp;&nbsp; oLayer.width = imgWidth + 20;<br><br>&nbsp;&nbsp;&nbsp; // ROIToolsLayer (w+20, h)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'ROIToolsLayer' );<br>&nbsp;&nbsp;&nbsp; oLayer.width = imgWidth + 20;
<br><br>&nbsp;&nbsp;&nbsp; // PanArrowsLayer (w+20, h)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'PanArrowsLayer' );<br>&nbsp;&nbsp;&nbsp; oLayer.width = imgWidth + 20;<br>&nbsp;&nbsp;&nbsp; oLayer.height = imgHeight + 20;<br><br>&nbsp;&nbsp;&nbsp; // ReferenceLayer (w+20, h+22)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'ReferenceLayer' );
<br>&nbsp;&nbsp;&nbsp; oLayer.top = 360 + imgHeight;<br>&nbsp;&nbsp;&nbsp; oLayer.width = imgWidth + 20;<br><br>&nbsp;&nbsp;&nbsp; // SearchingLayer (w+20, h+22)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'SearchingLayer' );<br>&nbsp;&nbsp;&nbsp; oLayer.top = 360 + imgHeight;<br>&nbsp;&nbsp;&nbsp; oLayer.width
 = imgWidth + 20;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; // LegendLayer (h+20)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'LegendLayer' );<br>&nbsp;&nbsp;&nbsp; oLayer.height = imgHeight + 20;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; // ReferenceTabsLayer (w+20, h)<br>&nbsp;&nbsp;&nbsp; var oLayer = CWCDHTML_GetLayer( 'ReferenceTabsLayer' );
<br>&nbsp;&nbsp;&nbsp; oLayer.width = imgWidth + 20;<br>&nbsp;&nbsp;&nbsp; <br><br>}<br><br>function ShowNavToolsLayer()<br>{<br>&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'NavToolsLayer', 'ROIToolsLayer', 'TopTabsLayerActive' );<br>}<br><br>function ShowROIToolsLayer()<br>
{<br>&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'ROIToolsLayer', 'NavToolsLayer', 'TopTabsLayerActive' );<br>}<br><br>function ShowLegendLayer()<br>{<br>&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'LegendLayer', 'OtherToolsLayer', 'SideTabsLayerActive' );<br>}<br>
<br>function ShowOtherToolsLayer()<br>{<br>&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'OtherToolsLayer', 'LegendLayer', 'SideTabsLayerActive' );<br>}<br><br>function ShowReferenceLayer()<br>{<br>&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'ReferenceLayer', 'SearchingLayer', 'ReferenceTabsLayerActive' );
<br>}<br><br>function ShowSearchingLayer()<br>{<br>&nbsp;&nbsp;&nbsp; ToggleLayerSetVis( 'SearchingLayer', 'ReferenceLayer', 'ReferenceTabsLayerActive' );<br>}<br><br><br><br>LayerSetSizeInit();<br><br>LayerSetVisInit();<br>++++++++++++++++++++++++++++++++++++
<br><br>also modified sample.css like this<br>++++++++++++++++++++++++++++<br>#ReferenceTabsLayer {<br>&nbsp; position:absolute;<br>&nbsp; left:400px;<br>&nbsp; top:640px;<br>&nbsp; width:180;<br>&nbsp; height:12px;<br>&nbsp; z-index:1;<br>&nbsp; padding:0px;
<br>&nbsp; margin:0px;<br>&nbsp; border-bottom: 1px solid #cccccc;<br>}<br>#ReferenceLayer {<br>&nbsp; padding:0px;<br>&nbsp; margin:0px;<br>&nbsp; position:absolute;<br>&nbsp; left:430px;<br>&nbsp; top:670px;<br>&nbsp; width:420px;<br>&nbsp; height:150px;<br>&nbsp; z-index:1;
<br>&nbsp; background-color:#ffffff;<br>}<br><br>#SearchingLayer {<br>&nbsp; padding:0px;<br>&nbsp; margin:0px;<br>&nbsp; position:absolute;<br>&nbsp; left:430px;<br>&nbsp; top:670px;<br>&nbsp; width:420px;<br>&nbsp; height:150px;<br>&nbsp; z-index:1;<br>&nbsp; background-color:#ffffff;
<br>}<br>+++++++++++++++++++++++<br><br>I've added a script like as below on my html template<br>===========================<br>&lt;input type=&quot;hidden&quot; name=&quot;TopTabsLayerActive&quot; value=&quot;[$TopTabsLayerActive$]&quot;&gt;
<br>&lt;input type=&quot;hidden&quot; name=&quot;SideTabsLayerActive&quot; value=&quot;[$SideTabsLayerActive$]&quot;&gt;<br>&lt;input type=&quot;hidden&quot; name=&quot;ReferenceTabsLayerActive&quot; value=&quot;[$ReferenceTabsLayerActive$]&quot;&gt;
<br>=================================<br><br>My problem is when I use mozilla everything running well but when I use IE some error appear.<br>The error message &quot;Line 516 char 13 undefined is null or not an object&quot;
<br>Where is the error code?<br>Please help me<br>Thank you very much<br>Regards<br>pssdal<br><br><br>