Closed Bug 6215 Opened 26 years ago Closed 26 years ago

OnSubmit method not getting called

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 6346

People

(Reporter: morse, Assigned: pollmann)

Details

The following content displays a button. Pressing the button should submit the form and cause control to get to the OnSubmit method on nsFormFrame.cpp. But control never gets there. This bug is currently causing the cookie and the single-signon viewers not to work. It is a regression -- they used to work. So this is blocking development of those viewers. <HTML> <HEAD> <SCRIPT> button_frame = 1; var xxx; function loadButtons(){ top.frames[button_frame].document.open(); top.frames[button_frame].document.write( "<FORM name=buttons>" + "<INPUT type=BUTTON value=OK onclick=parent.clicker()>" + "<INPUT TYPE=HIDDEN NAME=xxx SIZE=-1>" + "</FORM>" ); top.frames[button_frame].document.close(); } function clicker(){ var xxx = top.frames[button_frame].document.buttons.xxx; document.cookie = "name=" + xxx.value + ";"; top.frames[button_frame].document.buttons.submit(); } </SCRIPT> </HEAD> <FRAMESET ROWS = 25,25 onLoad=loadButtons()> <FRAME SRC=about:blank> <FRAME SRC=about:blank> </FRAMESET> <NOFRAMES> <BODY> <P> </BODY> </NOFRAMES> </HTML>
See related bug 6346 which might or might not be a duplicate of this one.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 6346 ***
Status: RESOLVED → VERIFIED
Agreed. This is a duplicate of 6346.
You need to log in before you can comment on or make changes to this bug.