Results 1 to 4 of 4

Thread: JS Error with Featured Content Slider

  1. #1
    Join Date
    Jun 2009
    Posts
    52
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default JS Error with Featured Content Slider

    Re: http://www.garagepals.com/work-bench.html with this script: http://www.dynamicdrive.com/dynamici...tentslider.htm

    Can anyone spot why featuredcontentslider.init is undefined? I've got this scripting working on a number of sites. Error: 'featuredcontentslider' is undefined

    But I sure don't see what's different about the scripting here. Error: 'featuredcontentslider' is undefined.

  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

    The script for it (contentslider.js) isn't associated with the page. I did find a script (lib.store.yahoo.net/lib/yhst-65054472207421/et-viewimg.js) that starts out like so:

    Code:
    //** Begin Veiwimg image magnifier popup scripting
    //** This script is from Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm
    //** It is split out here for use on pages without slide shows, but needs to be loaded for Content Slider to work
    But as it clearly states, it's only part of it. And I'm not even convinced of that.

    Make sure the contentslider.js script and all of its resource files are properly installed on the page.

    And, once you do so, make sure that the script credit appears in the served source code of the page.
    - John
    ________________________

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

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

    Default

    Thanks John. I sure thought I had copied all the scripting to the files library and called it. Obviously I had not.

    Fixing that introduced a new problem though. The referenced URL now shows only one alternate view instead of all 5. The links in the "toc" to the additional thumbnails are getting written with a style="display: none;" added to them apparently by JavaScript. Have I got something squicked in the init settings that would cause this?

    Jim

  4. #4
    Join Date
    Jun 2009
    Posts
    52
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Never mind. I found it. There was a scripting error in the code that should have generated the additional content divs for slides 2 and beyond. Without those content divs getting generated into the HTML source, the JavaScript was going nuts.

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
  •