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 5 of 5
  1. #1
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,090
    Thanks
    2
    Thanked 23 Times in 23 Posts

    Javascript error only on page load?

    I have a really weird error on my site since adding Brothercake's UDM4 menu to my site (techtipscentral.net). When I go to any page on my site, I get the following javascript error:

    Line: 3
    Char: 1
    Error: Syntax error
    Code: 0
    URL: (whatever URL I'm going to this time around)

    Whenever I refresh the page, the javascript error goes away. Does anyone have a clue how I might go about finding the cause of this problem?
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #2
    Regular Coder
    Join Date
    Oct 2006
    Posts
    181
    Thanks
    1
    Thanked 6 Times in 6 Posts
    OK, i have just had a look around the page, navigating to random pages, and no errors....

    i used Opera...

    EDIT--

    Tested In FF2, and IE6, No Errors...
    Last edited by Shoot2Kill; 02-12-2007 at 12:45 AM. Reason: Re-Test
    Quote Originally Posted by Excavator
    write it for firefox then hack it for IE

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Hmm in this file
    http://www.techtipscentral.net/udm-r...-autosizing.js
    It seems that your comments are little messed up. A valid JS comment is this
    Code:
    // commented stuff
    but you have
    Code:
    \\ commented stuff
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,090
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Ah, I didn't think to check this is another browser! This problem is happening in IE7 but not in FF1.5. Very strange indeed!

    Aero, the comments on that one page are correct syntax for javascript comments. (For the record, I didn't write that code. Blame it on Brothercake! )
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #5
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,090
    Thanks
    2
    Thanked 23 Times in 23 Posts
    This is just a follow-up to let everyone know that I finally nailed down this problem. Turned out that I had a missing javascript file. I uploaded it to my web server, and this problem went away.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

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