Results 1 to 5 of 5

Thread: Javascript Clash - Using fade-in-slide-show!

  1. #1
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript Clash - Using fade-in-slide-show!

    Hi,

    I've just tried installing the Fade In Slide Show at: http://www.dynamicdrive.com/dynamici...nslideshow.htm

    Because i am using some other javascript it seems to clash and one will stop the other from working, which ever one comes first in the code that one functions correctly.

    I don't really understand javascript myself, so my guess is that something is named the same that they both use...

    1. Is there a way i can find out what bit is clashing?
    2. Is it easy to fix?
    3. Should i just give up using it now? lol

    A similar slide show called galleriffic works fine, but i just wanted something simpler on a few pages.

    Thanks

    James

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Often that's the reason why scripts conflict. However, in this case it is more likely a conflict of javascript libraries, one used for this script, another for the other script. Essentially though, it would amount to the same thing. But it could be other things. If you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,

    The new site's in BETA mode, the page i'm testing the script on is:

    http://www.fijdesign.com/BETA/produc...evelopment.php

    which has the fade-in-slide-show working correctly but it has disabled/effected the backgrounds.

    If you check out:

    http://www.fijdesign.com/BETA/shopfr...nd-signage.php

    you'll see that the backgrounds and galleriffic script work ok together, i can upload a test with the fade-in-slide-show below the background script, which would disable the fade-in-slide-show if that would help?

    Thanks


    James

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    From what I can tell, using the slide show (fadeinslideshow.js and the on page init for it) after:

    settings.0.js

    should work, as well as should simply removing:

    Code:
    jQuery.noConflict()
    from the fadeinslideshow.js file. But neither of these solutions would account for your statement:

    which ever one comes first in the code that one functions correctly.
    Which implies that the other does not. The slide show should work regardless of which comes first, as long as its on page init follows its main fadeinslideshow.js script file.

    So if the above suggestions don't solve this for you, I would like to see:

    a test with the fade-in-slide-show below the background script, which would disable the fade-in-slide-show
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John


    Thanks for your help, i commented out //jQuery.noConflict() and everything works fine now.


    Many thanks

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
  •