Search code examples
jqueryprettyphoto

prettyPhoto not working on document ready


I have seen this asked and followed everything but it simply doesnt work for me

Could anyone tell me if they see anything wrong here? Im not very good at this yet, I am sure it must be something simple.

My goal is to display a popUp once the page is loaded.

Any help is appreciated!

<script type="text/javascript" charset="utf-8">
        $(document).ready(function(){               
            $("a[rel^='prettyPhoto']").prettyPhoto();

            function showPopUp() {
                var where = "images/popup.jpg";
                var title = "";
                var comment = "";           

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

            showPopUp();

        });
    </script>

Solution

  • Problem has been fixed in version 3.0.3.

    Solution was found here: isSet is not defined