JQuery PrettyPhoto passing iframe id

I am trying to use jQuery PrettyPhoto and for some reason it does not go through the id variable. If someone has encountered this problem before and knows the solution, that would be fantastic! Here is the code:

<a href="/store-item-details?id=5&iframe=true&width=800&height=530" 
   rel="prettyPhoto[iframes]"
   title="">
   <img src="/images/store/thumbs/'.$item->image.'"
        alt="'.$item->name.'"
        width="100"
        border="0" />
</a>

Here is the link (with a beautiful photo, click on one of the thumbnails)

http://www.photographicpassions.com/shop?view=products&category=1

and here is the direct link from the tag:

http://www.photographicpassions.com/store-item-details?id=1&iframe=true&width=800&height=530

Please, help!:)

+5
source share
2 answers

I released a new version of prettyPhoto that fixes a bug if you don't want to crack it.

: http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/

+5

prettyPhoto. ( iframe), URL- .

unminified jquery.prettyPhoto.js. , movie_url.

    }else if(pp_type == 'iframe'){
      movie_url = $caller.attr('href');
      movie_url = movie_url.substr(0,movie_url.indexOf('?'));

      pp_typeMarkup = '<iframe src ="'+movie_url+'" width="'+(correctSizes['width']-10)+'" height="'+(correctSizes['height']-10)+'" frameborder="no"></iframe>';
    }

, , , . (, , : http://fmarcia.info/jsmin/test.html)

    }else if(pp_type == 'iframe'){
      movie_url = $caller.attr('href');
      // movie_url = movie_url.substr(0,movie_url.indexOf('?')); // commented out to allow other attributes to be passed along.

      pp_typeMarkup = '<iframe src ="'+movie_url+'" width="'+(correctSizes['width']-10)+'" height="'+(correctSizes['height']-10)+'" frameborder="no"></iframe>';
    }
+6

All Articles