View Full Version : Yet Another IE Javascript Bug?

09-01-2006, 07: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).


Here is the code:

<SCRIPT language="VBScript">
'IE Test for Flash
'On Error Resume Next
'showFlash = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))

<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)">


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?

09-02-2006, 04:18 PM
Not sure this helps, but I have a similar sort of problem with a page - which admittedly is encrypted - but renders perfectly in IE7, FF and even in the IE6 latest updated version on practically all machines except a particular HP notebook I have come across. I have practically taken the notebook apart trying to work out why it throws js errors. It doesn't want to know about the encrypted code and tries to read it as real code. There are no proxies, I've disabled all add-ins, plugins etc. There's nothing that I can find that is different to the same latest version of IE6 running on all other machines.

I can only put it down to a bug in IE6 itself (with a particular notebook???)

The page is here: ...because of the referrer check, you have to get to the page (h**p://aapress.com.au/ielts/english/quiz.html) from a link in the domain http://aapress.com.au/ielts/english/study.html (top right link on the greenboard).

I mean it's IE6 not liking the javascript which encodes the page - but, as I say, it's only on this machine (I think).

Good luck with finding an answer to your problem.