Form target change affecting POST-based submission behaviour

C

Chris Wood

Hello all!

I wonder if anyone can shed any light on the following problem that I'm
experiencing on one particular Windows 98 PC running IE 6.0:

None of the input values of a HTML form are being HTTP-POSTED to the
server upon forced submission from within a JavaScript function, though
this is what the form's HTML tag defines:

<FORM name="inputform" id="inputform" action="page2.php"
method="post" target="_self" >

This seems to be occuring due to the action of changing the form's
target frame to a pop-up win, specifically as defined by the statement
document.inputform.target = 'previewpopup';
in the goPreview() function:

function goPreview() {
document.inputform.target = 'previewpopup';
previewpopupvariable = window.open('', 'previewpopup',
'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,
resizable=0,width=622,height=335,left = 50,top = 50');
document.inputform.submit();
document.inputform.target = '_self';
}


I think that this may be undefined behaviour in some versions of
Internet Explorer, though I can't be sure.

Thank you very much in advance if you have any ideas!

Chris Wood
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top