Reputation: 179
$('#order_info_print_confirmation').click(function() {
var link = 'action_URL' + "?" + $('action_NAME').serialize();
window.open(link,"Print Confirmation","directories=no,status=yes,width=620, height=900,top=0,left=0,scrollbars=yes");
});
What's wrong here? I'm able to get a popup window with the printConfirmation
action on Firefox but can't figure it out on IE.
Upvotes: 1
Views: 809
Reputation: 504
Remove the space between 'Print Confirmation', make it PrintConfirmation.
window.open(link, "PrintConfirmation", "directories=no,status=yes,width=620, height=900,top=0,left=0,scrollbars=yes");
i think this could work
Upvotes: 1
Reputation: 2206
At first glance, it looks like action_NAME
is an ID, but you're missing the #
$('#order_info_print_confirmation').click(function() {
var link = 'action_URL' + "?" + $('#action_NAME').serialize();
window.open(link,"Print Confirmation","directories=no,status=yes,width=620, height=900,top=0,left=0,scrollbars=yes");
});
And, is action_URL
an actual URL or variable?
Upvotes: 0