API Does Not Work in Safari -- Win or Mac
  • The latest version of Safari for both the Mac and Windows do NOT like calls to the API.

    On a Mac, the pop-ups always open behind the calling browser. In Windows, the calling browsers jerks a few pixels like a hiccup, but no Pretty Photo window opens.

    Using the latest ver. of Jquery.

    Note that, these calls are being made from links within an XML file that is loaded into Falsh.

    The following work flawlessly in Opera, FireFox, and MSIE, but NOT Safari:



    function doQuickTimeVideoTwo() // user-defined function example
    {
    var contentState="isOpen"; // do not remove
    notifyFlash(contentState); // do not remove

    var clip = "_videos/yourmovie.mov?width=848&height=352"; // NOTE: For QuickTime movies always add 16 to the height!
    var theTitle ="Your Movie Title";
    var theDescription = " Copyright © Your Name Here";

    PrettyPhotoDelegate(clip, theTitle, theDescription);
    }




    // receive content info and display in Pretty Photo holders -- do not remove

    function PrettyPhotoDelegate(where, title, comment)
    {
    $.prettyPhoto.open(where, title, comment);
    }




    And at the bottom of the HTML:





    $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto(); // initialize gallery expansion scripts
    });




    Anyone have a fix?


    Thanks!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!