Results 1 to 10 of 3727

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Quote Originally Posted by Alex Clarke View Post
    I understand what you're saying. The lightbox_lightningload.js script will not let the lightbox proceed unless the image(s) have been loaded.

    However, if this file is not loaded and the user clicks on the image(s) (as you've described) we have a problem. I beleive this will be the case for most people with slow Internet connections or people running Zen Cart on slow servers.

    I'll have a look for a solution and see ifI can come up with anything.

    Thanks for pointing this out. :)
    This isn't a double post. I a pretty sure that all you need to do is change the 'onload' event to 'domready' That will transform the links basically as soon as they are accessible by the user: http://demos.mootools.net/DomReadyVS.Load

    Whatever you do don't disable the mouse!!!!!

  2. #2
    Join Date
    Nov 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by banswidthjunkie View Post
    This isn't a double post. I a pretty sure that all you need to do is change the 'onload' event to 'domready' That will transform the links basically as soon as they are accessible by the user: http://demos.mootools.net/DomReadyVS.Load

    Whatever you do don't disable the mouse!!!!!
    I believe that Alex is using the DOM functionality but this does not matter with slow internet connections as the page is rendered as the browser receives the html. Thus when the place holder for the anchor tag is rendered, the user can click on it, this being before the DOM event has occurred. I know that this is an extreme case but as explained in a previous post, my page was referencing a security seal and a site meter count. Only when these were loaded, did the DOM event occur (sometimes taking more than 5 seconds to load). I've since removed these from the product details page which has improved things.

  3. #3
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Quote Originally Posted by SilverZulu View Post
    I believe that Alex is using the DOM functionality but this does not matter with slow internet connections as the page is rendered as the browser receives the html. Thus when the place holder for the anchor tag is rendered, the user can click on it, this being before the DOM event has occurred. I know that this is an extreme case but as explained in a previous post, my page was referencing a security seal and a site meter count. Only when these were loaded, did the DOM event occur (sometimes taking more than 5 seconds to load). I've since removed these from the product details page which has improved things.
    If that is the problem, then why not just wait for the dom load before displaying the link to the image? Maybe a trasition the pops the image box out of the side of the page.

    Yeah I can see that due to the way zencart builds the page, this problem is never going to be resolvable without some little trick.

  4. #4
    Join Date
    Nov 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    OK, I think I have a solution for the problem where the browser displays the image in a new window, instead of displaying it with the Lightbox functionality. This can happen on a slow or loaded internet connection and the user clicks on the image before the page has completely loaded.

    What I did was to manually call the Lightbox init function once the last anchor tag was loaded. This call was insert after the product description. I created an the override tpl_product_info_display.php and inserted the following code directly after the line '<!--eof Product description -->' (line 128 on my system);
    PHP Code:
    <script language="javascript" type="text/javascript"><!--
    initLightbox();
    //--></script> 
    I then removed the loading of lightbox_lightningload.js in product_info/jscript_zen_lightbox.php Just deleted the following line;
    PHP Code:
    echo '<script type="text/javascript" src="' $template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/lightbox_lightningload.js"></script> 
    Since I only use Lightbox in the product details page, I've left all other references the same. It now works a dream (even on a 56kb dialup connection).

 

 

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg