SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast sinjix_media's Avatar
    Join Date
    Mar 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Not Working Unless Logged In

    I suspect the reason my JS select box on my sidebar NY Body Art | New York Tattoo Culture isn't working unless I'm logged in has to do with the fact that I use a cache plug-in(W3 Total Cache), but I can be wrong. If it is the case, I have no idea how to fix it. I cleared the site's cache and my cache and my MaxCDN cache, but it's still not working(supposed to go to the page of the city when selected)
    Regards,
    Danny Michel

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,183
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    The following error occurs when i went to your site.

    Error: missing ; before statement
    Source File: NY Body Art | New York Tattoo Culture
    Line: 1, Column: 13
    Source Code:
    hidefunction jumpto(x){if(document.form12.jumpmenu2.value!="null"){document.location.href=x}}
    From what i can see the following code below is where the error occurs...

    Code JavaScript:
    hidefunction jumpto(x)
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle

  3. #3
    SitePoint Enthusiast sinjix_media's Avatar
    Join Date
    Mar 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont know JS. an you tell me what i can do to fix it?
    Regards,
    Danny Michel

  4. #4
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,183
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Simply change hidefunction to function and the error should go away
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle

  5. #5
    SitePoint Enthusiast sinjix_media's Avatar
    Join Date
    Mar 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It worked! thanks!
    Regards,
    Danny Michel


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
  •