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?