Results 1 to 6 of 6

Thread: stepcarousel Not working period!

  1. #1
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default stepcarousel Not working period!

    1) Script Title: Stepcarousel

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...epcarousel.htm


    3) Describe problem: Step carousel not functioning. I've done what it was required, but when I view it Firebug, it says that stepcarousel is undefined which seems odd.

    http://akibavault.com/theImmag/
    Last edited by ddadmin; 09-09-2009 at 06:46 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The two .js references to the script in the HEAD section of your page are broken:

    Code:
    <script type='text/javascript' src='http://akibavault.com/theImmag/wp-content/themes/Immigrantmagazine/library/js/stepcarousel.js?ver=2.8.4'></script>
    <script type='text/javascript' src='http://akibavault.com/theImmag/wp-content/themes/Immigrantmagazine/library/js/stepcarousel-setup.js?ver=2.8.4'></script>

    For example, if you try to visit one of the referenced files, they take you to a web page instead of the source of the script itself.
    DD Admin

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

    Unhappy

    Thank you very much.
    How do you fix that.

    Here is what my head section cod looks like
    Code:
    <?php 
    wp_enqueue_script('jquery');  
    wp_enqueue_script( 'stepcarousel', get_bloginfo('template_directory').'/library/js/stepcarousel.js', array('jquery'));
    wp_enqueue_script( 'stepcarousel-setup', get_bloginfo('template_directory').'/library/js/stepcarousel-setup.js', array('jquery'));
    ?>
    Please help.
    Here is the site address
    http://www.akibavault.com

  4. #4
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Red face

    I read others posts regarding broken .js reference file, and I double check where my script was pointing to. Yet, I don't seem to get what the problem may be. I'm not sure if I should include the full path. As you can see on my previous post, the php code looks at the template directory to point the scripts.

    Thanks in advance for the help.

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Right now the URLs to the external files of Step Carousel on your page are broken, for example:

    Code:
    <script type='text/javascript' src='http://www.immigrantmagazine.com/wp-content/themes/Immigrantmagazine/library/js/stepcarousel.js?ver=2.8.4'></script>
    <script type='text/javascript' src='http://www.immigrantmagazine.com/wp-content/themes/Immigrantmagazine/library/js/stepcarousel-setup.js?ver=2.8.4'></script>
    If you try to load the first link for example, it doesn't load the script but the entire page, most likely because the file doesn't exist. You need to make sure the paths to the two files above are correct.
    DD Admin

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    proch (09-20-2009)

  7. #6
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thank you very much. I think I figure out what the problem was. I renamed the directory from which the file was located before uploading it to the server. That has caused the problem because I tested it by uploading the original directory and it worked fine. Thank you all... this is a great forum.

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
  •