JQuery PrettyPhoto/Lightbox with Loupe Magnifier

Posted by thebluefox on Stack Overflow See other posts from Stack Overflow or by thebluefox
Published on 2010-04-01T10:00:24Z Indexed on 2010/04/01 10:03 UTC
Read the original article Hit count: 856

Filed under:
|
|

Morning gang,

Right, I'm trying to crowbar a magnifier, like this one, into prettyPhoto (picked because the JS is nice). The trouble I'm having is initiating the loupe function when the prettyPhoto has loaded. If I include it in the prettyPhoto JS, it just gets itself into an endless loop, or doesn't get called at all. I've nearly got it working by putting a link next to the close button that calls the function inline, like so;

<a href="#" onclick="$(\'.TB_Image\').loupe(); return false;">Magnify</a>

The only problem here is that the return false doesn't work? It works when the call to loupe isn't in the onclick event though? Doing it this way does run the loupe function, but the homepage gets loaded so I don't know if it actually works or not.

Has anyone got any sugestions at all?

All help much appreciated!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins