quantass
09-01-2006, 06:13 PM
Im using IE 6.0 on Windows 2003 Server Enterprise. My ASP.NET controls are displaying fine including the javascript that is output by it. The control works fine on my local PC and on the production server however when I copy the required files to a collegaues local PC (physically located in the same room) and I connect to it from my browser to his desktop through the LAN I get an unusual javascript error: "Error: Expected Then". The line it is complaining about is properly formatted JS. The output runs fine in Firefox and again on production and my local PC, but when i copy it to another LAN PC and try to view the control on his PC from my browser the error occurs. He is able to view the control output fine on his PC.
So there seems to be something wrong with IE6 when it comes to JS code and LAN. I've already lowered my security Internet and Local Area Network settings and confirmed scripting is on. I've flushed my cache.
Any ideas? I've tried modifying the IIS 5 server's MIME Type from blank (which sent back application/x-javascript) to application/javascript and text/javascript but the same results occurred.
Again this error is only occuring when I connect from a local PC to another PC on the LAN. IE has shown the remote PC to be in the Local Intranet and also Internet (made no difference).
Thanks.
Here is the code:
<html>
<body>
<SCRIPT language="VBScript">
'IE Test for Flash
'On Error Resume Next
'showFlash = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))
</SCRIPT>
<LINK type="text/css" href="/Rainbow/DesktopModules/TabsTreeMenu/TabsTreeMenu.css" rel="stylesheet" />
<SCRIPT type="text/javascript" src="/Rainbow/DesktopModules/TabsTreeMenu/TabsTreeMenu.js"></SCRIPT>
<SCRIPT type='text/javascript'>TTM_CollapseImg='/Rainbow/DesktopModules/TabsTreeMenu/warrowcollapse.gif'; TTM_ExpandImg='/Rainbow/DesktopModules/TabsTreeMenu/warrowexpand.gif';ShowActiveTab=1;</SCRIPT>
<DIV id="TabsTreeMenu" class="TabsTreeMenu" onselectstart="return false" onclick="if (TabsTreeMenu_OnClick) TabsTreeMenu_OnClick(event)">
<DIV class='TTM_MENU_1 TTM_MENU_HASCHILD_1'>Test</DIV>
</DIV>
</body>
</html>
** UPDATE**
The problem seems localized to the <SCRIPT language="VBScript"> block. If i completely remove it, the error is gone. Why is that? Is there something wrong with my every one's LAN pc here that break VBScript when launched for another PC?
So there seems to be something wrong with IE6 when it comes to JS code and LAN. I've already lowered my security Internet and Local Area Network settings and confirmed scripting is on. I've flushed my cache.
Any ideas? I've tried modifying the IIS 5 server's MIME Type from blank (which sent back application/x-javascript) to application/javascript and text/javascript but the same results occurred.
Again this error is only occuring when I connect from a local PC to another PC on the LAN. IE has shown the remote PC to be in the Local Intranet and also Internet (made no difference).
Thanks.
Here is the code:
<html>
<body>
<SCRIPT language="VBScript">
'IE Test for Flash
'On Error Resume Next
'showFlash = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))
</SCRIPT>
<LINK type="text/css" href="/Rainbow/DesktopModules/TabsTreeMenu/TabsTreeMenu.css" rel="stylesheet" />
<SCRIPT type="text/javascript" src="/Rainbow/DesktopModules/TabsTreeMenu/TabsTreeMenu.js"></SCRIPT>
<SCRIPT type='text/javascript'>TTM_CollapseImg='/Rainbow/DesktopModules/TabsTreeMenu/warrowcollapse.gif'; TTM_ExpandImg='/Rainbow/DesktopModules/TabsTreeMenu/warrowexpand.gif';ShowActiveTab=1;</SCRIPT>
<DIV id="TabsTreeMenu" class="TabsTreeMenu" onselectstart="return false" onclick="if (TabsTreeMenu_OnClick) TabsTreeMenu_OnClick(event)">
<DIV class='TTM_MENU_1 TTM_MENU_HASCHILD_1'>Test</DIV>
</DIV>
</body>
</html>
** UPDATE**
The problem seems localized to the <SCRIPT language="VBScript"> block. If i completely remove it, the error is gone. Why is that? Is there something wrong with my every one's LAN pc here that break VBScript when launched for another PC?