PrettyPhoto javascript does not work on safari?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
alecgatenby
Forum Newbie
Posts: 3
Joined: Thu Jul 02, 2009 9:54 am

PrettyPhoto javascript does not work on safari?

Post by alecgatenby »

Can anyone advise me on why the prettyPhoto javascript does not load in safari. With reference to the site: http://homepage.mac.com/alecgatenby/ken ... index.html

once you click into portfolio it does not load in safari, it does work in Firefox... Any tips on how to fix this are most welcome!?...


Alec
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: PrettyPhoto javascript does not work on safari?

Post by kaszu »

Try changing:

Code: Select all

$(document).ready(function(){
            $("a[rel^='prettyPhoto']").prettyPhoto({
to

Code: Select all

$(window).bind('load', function(){ //or document.body instead of window if this doesn't work
            $("a[rel^='prettyPhoto']").prettyPhoto({
I don't know if it's still an issue with latest jQuery, but there used to be such a problem that 'on ready' event DOM was not available in Safari.
Post Reply