API does not load images
  • I am using a content handler in ASP.NET MVC3 to load images from a database. Pretty Photo is not loading the images with the API.

    Here is an image that should popup a gallery of images:

    <a href='' onclick="$.prettyPhoto.open(api_images0,api_titles0,api_descriptions0);" title='UFC123'>

    <img style="max-height: 160px;max-width: 260px;" id='Img31' alt='UFC123' title='UFC123' src='/img.ashx?mediaId=31' style='padding:10px' />


    Here is the script I am using:

    <script type="text/javascript" charset="utf-8">

    var api_images0 = ['/img.ashx?mediaId=33'];

    var api_titles0 = ['Gina'];

    var api_descriptions0 = ['Gina Description'];


    <script type="text/javascript" charset="utf-8">

    $(document).ready(function () {

    $("a[rel^='prettyPhoto']").prettyPhoto({ theme: 'dark_rounded', social_tools: '' });



Howdy, Stranger!

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

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter