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

No 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

  15. Jeff says:

    For those who are getting it to work on FF and Chrome but not on IE: if you don’t define the width and height of your thumbnail IE won’t display them. Once I set them it started working in IE too.

    Hopefully this helps some of you.

    -JS

  16. GminBult says:

    Strona www posiada bezplatne obrazy i filmiki z branzy adult dating personals. Galerie erotyczne przeznaczone wylacznie dla widzow doroslych. Codzienna aktualizacja tresci. Zobacz juz dzis!

  17. MarCoch says:

    Strona www prezentuje frikowe zdjecia i filmy z kategorii sex anonse warszawa. Galerie erotyczne przeznaczone tylko dla widzow doroslych. Codzienna aktualizacja materialow. Zobacz juz dzis!

  18. Hello !
    prettyPhoto still crashing on IE7.
    Any solution ?

    When I enter the page the browser asks if I leave the site to access the “facebook.com” that is on my list of safe sites.

    See: http://www.centrofisicoatitude.com.br/novo/fotos.php

    Thanks for that.

  19. Tácio says:

    I have a big problem!Pretty Photo doesen’t work on IE7!I already make everything to work, but don’t work!!
    Anyone have a solution for my problem???

    I need this working on IE7 urgently!

    Thanks!

  20. Tácio says:

    The error is “Object does not support this property or method “!!
    And charges this line of script: “url=location.href”

    Thanks!

  21. Tácio says:

    No more need!I got resolve the problem!
    I suggest add in the script the declaration of variable “var” in the function GetHashtag and ClearHashtag!!!
    IE7 didn’t work because had not “var” but “url= location.href” only!!

    Try put :
    “var url = location.href”

    I dont’ know why, but worked!

    Thanks!

  22. Gil says:

    “Tácio” – you’ve obviously Nailed the IE problem !!
    I’ve tried your simple solution on IE7 & IE8 and now it works perfectly fine.
    Thanks – great job!
    Gil

  23. miknaz says:

    Can someone tell me where exacly i must paste the ““var url = location.href” line from “Tácio”? Please help…

  24. Nate says:

    The “url = location.href” line is in prettyPhoto.js 2 times toward the bottom. I changed them both to “var url = location.href” didn’t make any difference for me…

    Still crashes all versions of IE

  25. Bill says:

    Hi all,

    I’m doing a favor for a friend by adding prettyPhoto to his existing website. Whoever built it many years ago used for the doctype and because of that it doesn’t seem to work in any version of IE. Unfortunately, changing the doctype completely breaks the layout of the site and I cant put in the time to update it.

    Does anyone know how to get it to work with this doctype?

    Thanks!

  26. Bill says:

    Sorry, the doctype was automatically stripped from my previous post. it was

    DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN

Leave a Reply