I have a web app where users can upload listings, and I'm popping up a message asking whether they want to add photos.
function askAddPhotos(id)
{
addPhotos = confirm('Add photos now?');
if(addPhotos == true) { showPhotos(id); }
}
function showPhotos(id)
{
photoviewer = open("PhotoViewer.aspx?ID=" + id, "PhotoWindow", "width=615 etc");
}
This works in IE (with the popup blocker enabled), but Safari's blocker catches it and prevents the popup from opening. Is there a way to "code around" this problem? Or should I be taking a different approach?
By the way, I'm quite new at JS, so be sure to spell everything out
Thanks
function askAddPhotos(id)
{
addPhotos = confirm('Add photos now?');
if(addPhotos == true) { showPhotos(id); }
}
function showPhotos(id)
{
photoviewer = open("PhotoViewer.aspx?ID=" + id, "PhotoWindow", "width=615 etc");
}
This works in IE (with the popup blocker enabled), but Safari's blocker catches it and prevents the popup from opening. Is there a way to "code around" this problem? Or should I be taking a different approach?
By the way, I'm quite new at JS, so be sure to spell everything out
Thanks