Reputation: 39018
I have a simple function which opens up a popup window to show a rendered out preview email.
Works on all browsers except for Safari :(
$('#preview_email_btn').unbind('click').bind("click", function() {
WHOAT.networking.postToServerWithAjax('/invite_preview', null, function (response) {
var w = window.open("", "popupWindow", "width=640,height=600,scrollbars=yes");
w.document.write(response);
});
});
How would this be updated to also support Safari?
Upvotes: 0
Views: 3333
Reputation: 362
You have some restriction about popups at safari\chrome reference.
I would recommend you to use something like Jquery Modal UI, that way you don't have to worry about cross browser issues. Also check browser settings to allow popups.
Upvotes: 1