Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Yet Another IE Javascript Bug?

    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?

  • #2
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    884
    Thanks
    53
    Thanked 6 Times in 5 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •