Results 1 to 2 of 2

Thread: Image Viewer not working correctly

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

    Default Image Viewer not working correctly

    Describe problem: When I click on the thumbnail image the second (large) image will display a milli second and then return quickly back to my thumbnail. Without showing the control buttons.

    see: http://gkwebdesigns.com/shylaphotogr...schildren.html

    Thank you for your help.
    Last edited by jscheuer1; 09-17-2011 at 02:55 AM. Reason: Not a DD script

  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

    You posted in Dynamic Drive Scripts help. But the Image Viewer used on the page you linked to is not a Dynamic Drive Script.

    Furthermore, it works in Firefox and Opera. Not in IE 9. But in that browser, the image never displays. It shows the loading image for a moment sometimes, then (regardless) just a blank white box.

    That can be fixed by updating prototype and scriptaculous. Change this:

    Code:
    <script type="text/javascript" src="/backboxfiles/js/prototype.compressed.js"></script>
    <script type="text/javascript" src="/backboxfiles/js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="/backboxfiles/js/lightbox.js"></script>
    <script type="text/javascript" src="/backboxfiles/js/dhtmlHistory.js"></script>
    <script type="text/javascript" src="/backboxfiles/js/customsignsheader.js"></script>
    <script type="text/javascript" src="/backboxfiles/js/scripaculous.js"></script>
    to:

    Code:
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="/backboxfiles/js/lightbox.js"></script>
    <script type="text/javascript" src="/backboxfiles/js/dhtmlHistory.js"></script>
    <script type="text/javascript" src="/backboxfiles/js/customsignsheader.js"></script>
    Yes, get rid of that second call to scriptaculous (scripaculous as it was typo-ed). Because of the misspelling, it's a 404 not found anyway.
    - John
    ________________________

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

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
  •