Stéphane Caron – No Margin For Errors

prettyPhoto 2.5.4.

October 17th 2009

Only a bug fix for the theme fallback for IE6. I messed the version check so all IE falled back to the white square theme.

Download is over here: http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/#download


Related Posts

If what you were reading interested you, those might too! Check them out!

17 Responses to “prettyPhoto 2.5.4.”


  1. Cesar says:

    Hi Stéphane,
    First of all thanks for your wonderful script!

    I would like to ask you what’s the right code to launch prettyPhoto from a flash file (.swf)? I’ve been searching on google and your forums but I couldn’t find an answer for that and I really need it!

    Thanks in advance.

    Cesar.

  2. Hi Stephane,

    Thank you for the wonderful script. I am planning to add it to my site and had a question.

    How can i have the slideshow auto play/stop in the lightbox mode. I see the next and previous button but how an autoplay button?

  3. jab says:

    Hello Stephane,
    Nice work. I’m using your script on my page, but it causes the ie7 to crash. Here is an example http://demo.just-another-blog.org/iecrash.html.

  4. admin says:

    Hi there,

    It is indeed crashing. Can you remove any scripts other than prettyPhoto to see if it’s really it causing the crash?

  5. jab says:

    I have removed all other scripts, but the ie7 is still crashing.

  6. jab says:

    When i remove the doctype the ie7 works correct, with all other doctypes the ie crashes. http://demo.just-another-blog.org/iecrash2.html

  7. admin says:

    Can you try to put a strict or transitional doctype?

    Transitional
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Strict
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 DTD/xhtml1-strict.dtd">

  8. Joel says:

    Hey Stephane, great to see you’re still working on these, and you’ve got new ones too :D

    Just wondering if you’re considering added an auto-size for iframed content within prettyPhoto. I just wrote myself a little iframe/lightbox script to load dialogs in, and trying to set up automatic sizing based on the iframe content’s height and width. Works great in Firefox, not so much in IE!

    I just popped in to see whether prettyPhoto had this functionality already to try and help me out :)

    Cheers buddy.

  9. superfly says:

    Hey Stephane,
    Nice script you got, to bad i must confirm the bug in IE7. It doesn’t matter which Doctype I use, transitional or strict the browser keeps crashing. Only if I remove the Doctype completely IE7 works… (Look here for crashing Version http://www.flyweb.at/about)

  10. Scott Young says:

    Great code! Thanks for sharing it!

    Quick question for you – I’m using the code to display a bunch of things on http://www.theultimatexmasgift.com/.

    One of them is a “Request A Catalogue” feature where you have OneShoppingCart opt-in code show up (about half way down the page on the right side where the elf is holding a catalogue with “click here”).

    What I’m trying to do is have the “Thank You Page” open in a new window (which works) but I need the box to close when they click “Send Me A Catalogue”.

    I’ve tried the following and none work:

    onclick=”returnValue=true;prettyPhoto.close();”
    onclick=”returnValue=false;prettyPhoto.close();”
    onclick=”returnValue=true;window.close();”
    onclick=”returnValue=false;window.close();”

    Any idea how to do this?

    Thanks!

    Scott

  11. Oguzhan says:

    Great Code, but is there now a solution for the IE7 chrash?!?

  12. admin says:

    @Oguzhan: If you take a look at: http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/

    You’ll see it’s working in IE7 thanks.

  13. Sitth says:

    Maybe this solves the IE-crash:
    In my case, I’ve compressed the prettyPhoto.js on my own with a free online compressor like http://javascriptcompressor.com/. But this didn’t really work. IE (v 7 and 9) crashed everytime I wanted to scroll down (if the site was scrollable).
    I now using the official compressed js-file.

    Hope this helps someone.

  14. prettyGallery – Error on IE6, IE7 and IE8

Leave a Reply