Closed Bug 59533 Opened 25 years ago Closed 24 years ago

Creating INPUT Fields dynamically are not seen/visible when posted to the server

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 65609

People

(Reporter: tom.yarnton, Assigned: pollmann)

Details

(Keywords: dom1)

Attachments

(1 file)

We are creating a dynamic table with an input checkbox. When posted to the server the newly created items are not posted/seen. For Example: <HTML> <HEAD> <SCRIPT LANGUAGE="javascript"> var i = 0; function AddRowToTable(ColVal) { var tblbody = null; var tbl = null; var oRow = null; var oCell = null; i = i + 1; if (ColVal == null) { ColVal = 'Internal'; } tblbody = document.getElementById('tblBODY'); oRow = document.createElement("TR"); oRow.id = "ROW " + i; oCell = document.createElement("TD"); oCell.innerHTML = "<INPUT id='chkSelected' name='chkSelected' type='checkbox' value=" + i + " ></INPUT>"; oRow.appendChild(oCell); oCell = document.createElement("TD"); oCell.innerHTML = "<B>Row " + i + "</B>"; oRow.appendChild(oCell); oCell = document.createElement("TD"); oCell.innerHTML = ColVal; oRow.appendChild(oCell); tblbody.appendChild(oRow); return true; } </SCRIPT> </HEAD> <BODY> <FORM ID="frmSearch" ACTION="GetTbl.asp" METHOD="POST"> <INPUT TYPE="button" ID="AddRow" Value="AddRow" onclick="javascript:AddRowToTable(0);"></INPUT> <INPUT TYPE="submit" ID="Submit" Value="Submit" ></INPUT> <TABLE NAME="tblLIST" ID="tblLIST" border=1 cellPadding=1 cellSpacing=1 width="75%"> <TH>LIST</TH> <TBODY ID="tblBODY"> </TBODY> </TABLE> </FORM> </BODY> </HTML> This does work in IE 5.0 / 5.5. Example GetTbl.asp <HTML> <% response.write "ALL FORM VARS <HR>" %> <% For Each x In Request.Form %> Request.Form( <%= x %> ) = <%= Request.Form(x) %> <BR> <% Next %> </HTML>
Reporter, since the bug you report involves a web server supporting ASP (which not everybody has on his/her machine), could you setup such server, running your GetTbl.asp page? That would help testing this bug. All I can say for now is that on Linux using 11/08 trunk, I can add rows by clicking the AddRow button. Keeping bug unconfirmed.
with 2000110804 trunk win32, I also can add rows
Below is links to demostrate the problem. Add some rows then select at least on to submit. IE 5+ the selected items are POST but not in NS 6.0 http://www.think.sk.ca/Test.htm with the asp page located at http://www.think.sk.ca/script/GetTbl.asp
I see this with linux trunk 2000110908. That is, the rows and new form elements are generated but not submitted with the post request. I tried the same thing with GET instead of POST, and that fails too. Confirming. Furthermore (is this a separate bug?) going back to the form after submitting I do not see any of the elements I had created.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Form submisson/formcontrol access problem, reassigning to pollmann.
Assignee: jst → pollmann
Nominating for Mozilla 0.9 since this bug stops people from submitting forms that they can submit when using IE.
Keywords: mozilla0.9
Keywords: dom1
Per talk with jst, commenting in this bug : This is the same as bug 65609 and bug 63954.
Thanks Fabian, this is indeed a dup! *** This bug has been marked as a duplicate of 63954 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Actually a variant of 65609
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
*** This bug has been marked as a duplicate of 65609 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
QA contact Update
QA Contact: janc → desale
VERIFIED dup
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: