javascript popup window with correct data
- by Christian
I want this code below open in a popup window. How do I do?
html-
<td align="right"><a onclick="confirmSubmit();" target="paywin" class="button"><span><?php echo $button_continue; ?></span></a></td>
Java -
var newwin = null;
function confirmSubmit() {
$.ajax({
type: 'GET',
url: 'index.php?route=payment/dibs/confirm',
success: function() {
$('#checkout-form').submit();
}
});
}
//--></script>
I tried something like this:
var newwin = null;
function confirmSubmit() {
$.ajax({
type: 'GET',
url: 'index.php?route=payment/dibs/confirm',
success: window.onload = function() {
$('#checkout-form').submit();
}
});
window.open('http://www.melacs.com/index.php?route=payment/dibs/confirm')
}
//--></script>