I am trying to load galleryView inside modal but it doesn't seem to be working.
Using galleryView by itself seems fine. I know this was asked before but I couldn't find solutions on other posts.
Anyone have a workable example of galleryView inside modal?
EDIT:
content += "<a href='#openModal'>Pictures</a>";
$(function(){
$('#myGallery').galleryView();
});
content += '<div id="openModal" class="modalDialog">'+
'<div id="dialog">'+
'<a href="#close" title="Close" class="close">X</a>'+
'<h3>'+place.name+'</h3>'+
'<p>'+place.formatted_address+'</p>';
content += "<ul id='myGallery'>";
//Loop for thumbnail
for (var i = 0; i < place.photos.length; i++) {
thumbnail = place.photos[i].getUrl({'maxWidth': 88, 'maxHeight': 88});
content += "<li><img src='"+thumbnail+"' alt='"+place.name+"'/>";
}
content += "</ul>";
content += '</div></div>';
Inside Infowindow I was able to set content and I can display just fine, but when I attetmpt to use galleryView... it is no longer working. Just shows blank.
Any suggestions?