c4
09.06.2005, 11:12:53
Moin,
ich weiß, dass das mal ging, nur weiß ich nicht, ob ich es mal genau so gemacht hatte: <script type='text/javascript'>
function do_submit(action) {
if (document.getElementById('form')) {
document.getElementById('sub').value='preview';
document.getElementById('form').target='windowLocationImport';
if (!action) {
if (document.getElementById('auto_preview').checked) {
document.getElementById('form').submit();
}
}
else if (action==1) {
document.getElementById('sub').value='import';
document.getElementById('form').target='_self';
document.getElementById('form').submit();
}
else if (action==2) {
document.getElementById('form').submit();
}
}
}
function do_window() {
var win = window.open('', 'windowLocationImport', 'width=550, height=400');
return false;
}
</script>
<form action='boxContent.php' method='get' id='form' onsubmit='do_window()' target='windowLocationImport'>
...
</form> Beim Abschicken soll also ein Fenster geöffnet werden und die Auswertung dann dort erfolgen.
Soweit alles kein Problem. Das Problem ist, dass er ein normales Fenster öffnet und nicht eins mit der angegebenen Größe.
Wo liegt der Fehler?
Danke
Carsten
ich weiß, dass das mal ging, nur weiß ich nicht, ob ich es mal genau so gemacht hatte: <script type='text/javascript'>
function do_submit(action) {
if (document.getElementById('form')) {
document.getElementById('sub').value='preview';
document.getElementById('form').target='windowLocationImport';
if (!action) {
if (document.getElementById('auto_preview').checked) {
document.getElementById('form').submit();
}
}
else if (action==1) {
document.getElementById('sub').value='import';
document.getElementById('form').target='_self';
document.getElementById('form').submit();
}
else if (action==2) {
document.getElementById('form').submit();
}
}
}
function do_window() {
var win = window.open('', 'windowLocationImport', 'width=550, height=400');
return false;
}
</script>
<form action='boxContent.php' method='get' id='form' onsubmit='do_window()' target='windowLocationImport'>
...
</form> Beim Abschicken soll also ein Fenster geöffnet werden und die Auswertung dann dort erfolgen.
Soweit alles kein Problem. Das Problem ist, dass er ein normales Fenster öffnet und nicht eins mit der angegebenen Größe.
Wo liegt der Fehler?
Danke
Carsten