SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2006
    Location
    England, UK
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ie6 not seeing external javascript file???

    Hi people

    I have built a page with a horizontal navigation which uses drop downs.

    I have used javascript for this and put all the script in an external file and used a link in my document head.

    It works fine in ff and ie7 but in ie6 it only works if i put the all the javascript in the document head - i have never had this problem before.

    any help appreciated.

    heres the page:
    www.darrenreaddesign.com/gate_goole

    and here it is with the javascript in the head:
    http://www.darrenreaddesign.com/gate_goole/test.html

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,189
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)

    syntax error

    IE throws a syntax error. The Firebug console shows
    missing ; before statement
    <script type="text/javascript"><!--//--><![CDATA[//><!--\n
    2 things. Because the javascript is in an external file, try not using the script tags. eg. instead of <script type="text/javascript"> code </script>, just have the code. Also, I'm not sure, but the script tag in the external file calling the cgi file may have something to do with this. Try calling that from the page instead of the js file.


Bookmarks

Posting Permissions

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