www.webdeveloper.com
Results 1 to 2 of 2

Thread: Image gallery slider fails when called from an external html file

  1. #1
    Join Date
    Jan 2011
    Posts
    2

    Image gallery slider fails when called from an external html file

    Hi all, I've followed an online tutorial and successfully created a gallery with a horizontal slide bar using [very specifically] JQuery versions 1.2.6.js and jquery-ui-full-1.5.2.min.js (since otherwise, it does not seem to work).

    After creating the gallery in the index.html, I decided to put all gallery and slider related scripts into a separate html file to be called with a PHP and ajax script. Here's the problem: While the slider [image] components as well as gallery images [in the slider] loads fine, the slider handler does not work anymore!

    You can see my problem when you select 'Gallery' from my website. Scroll to the bottom where the horizontal slider is and try moving it. 5%-10% of the time it works, for some odd reason. http://joeyipanimation.com/

    I'm not sure what code to show here.. but below are the links I've established to the .js files. With the paths, since the index.html is doing all the calling, I wouldn't have to deal with any '../../*.js' type of paths in order to jump up file levels (this also proven since the images in the gallery are done without '../../' paths).

    NOTE: ALL of these scripts already work if implemented directly into the index.html. This fails when executed from an external html file

    <script src="webpage/scripts/js/jquery-1.2.6.js" type="text/javascript" charset="utf-8"></script>
    <script src="webpage/scripts/js/jquery-ui-full-1.5.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="webpage/scripts/js/sliderGallerySetup.js"></script>

    Thanks!
    Joe

  2. #2
    Join Date
    Jan 2011
    Posts
    2
    Oh and just in case, I've only focused on building it for Firefox... other browsers [namely IE] may behave funny. I'll be needing lots of support when it comes time to tackle multiple browsers!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles