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 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Overlapping Javascript

    Hello,

    I am attempting a page that has two javascript components:

    Rotating Header Images
    I found Infinite Rotating Images Using jQuery

    Lightbox - Photo Viewing

    Each component works fine when presented alone on the page. However, when they are both called - only one works; and that is whichever is presented later in the HTML.

    Is there any way for me to make these work in harmony with one another or can I somehow combine these? I am not able to identify what is overlapping.

    Here is a sample of the issue: EBC
    As you can see -the rotating header images work - but Lightbox for the images below does not.

    Any help is greatly appreciated!
    Thanks!

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    448
    Thanks
    24
    Thanked 63 Times in 63 Posts
    the issue is not with the components, but the frameworks they extend. prototype and jQuery don't play nice. You should find plugins that serve your purpose with the same framework. after all, why load two complete frameworks each for just one script? but if you insist, there is a fix for jQuery buried somewhere in it's extensive documentation to allow it to work with other libraries that also use the $ symbol, you should post your question the jQuery forum for more advanced help.
    Allwisend bin ich nicht, doch viel ist mir bewursst
    -Goethe

  • #3
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    read the link inmy sig referring to using jquery with other libraries. it will shwo you what to do


  •  

    Posting Permissions

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