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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Jquery works 2/3rds the time, half the time :|

    I have a small "popup" style div that is set to appear on 3 pages of a website:

    www.f1banners.com
    http://www.f1banners.com/banner-prices.html
    http://www.f1banners.com/pvc-banners.html

    JS checks the URL and then decides if it should show the div or not. In Internet Exploiter it works on all 3 pages. On MOZ browsers it works on all but the index page. I thought perhaps that my if window.parent.location.pathname == "/" may be the problem but when I trace the pathname I get "/" which should be correct. And when I disable the condition my function still fails. I'm hoping someone can run a proper debugger on my site and figure it out because I'm stumped. Being Joomla, templates, bla bla, there's other JS files being pulled in which could be affecting it. I did not design the original but have been asked to make this addition.

    Thanks for the help in advance!

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    Wheeling, IL
    Posts
    358
    Thanks
    5
    Thanked 62 Times in 60 Posts
    The error I get in FireBug:

    Code:
    jwfs(slides[isShowing]).clearTimer is not a function
    Should be the reason why the script breaks, because JS would stop running at that point. See about fixing that, get FireBug and trace any other errors you might be getting after fixing this one.
    The way to success is to assume that there are no impossible things. After all, if you think something is impossible, you will not even try to do it.

    How to ask smart questions?

  • #3
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Error: jwfs(slides[isShowing]).clearTimer is not a function
    Source File: http://www.f1banners.com/modules/mod...y-fpss-comp.js
    Line: 10
    Here's the line number in the source code...


  •  

    Posting Permissions

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