user1060990
user1060990

Reputation: 179

POPUP window issues on IE

$('#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

Answers (2)

Jason
Jason

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

Paul
Paul

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

Related Questions