Results 1 to 6 of 6

Thread: Switch Content Script (Again)

  1. #1
    Join Date
    Sep 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch Content Script (Again)

    1) Script Title: Switch Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm

    3) Describe problem:

    I moved the script for this into an external js, and now it's not working in IE again. Here's the error it's giving me.

    Line: 49
    Char: 1
    Error: 'ccollect' is undefined
    Last edited by ddadmin; 09-08-2006 at 07:45 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It shouldn't make a difference at all if you move the code of Step 1 to the head. Please post a link to the page on your site that contains the problematic script so we can check it out.

  3. #3
    Join Date
    Sep 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry. The page I'm using it on is

    http://www.tsrealms.com/dictionary.shtml

    And the javascript is

    http://www.tsrealms.com/dic.js

    The script isn't in the head of my document though. I moved it to an external file. Unless you meant I should move the top block of js code into the head..

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmmm the page works for me. Tested in Firefox and IE6.

  5. #5
    Join Date
    Sep 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That is... so weird. I swear it wasn't working the first few times I tried it. And now it is. Even on my computer. How is that even possible? I didn't change a thing and now it works..

    Very strange.

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hehe it's the new "remote" form of support on DD forums!

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
  •