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)
Tracking
()
People
(Reporter: tom.yarnton, Assigned: pollmann)
Details
(Keywords: dom1)
Attachments
(1 file)
1.45 KB,
text/html
|
Details |
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>
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
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.
Comment 3•25 years ago
|
||
with 2000110804 trunk win32, I also can add rows
Reporter | ||
Comment 4•25 years ago
|
||
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
![]() |
||
Comment 5•25 years ago
|
||
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
Comment 6•25 years ago
|
||
Form submisson/formcontrol access problem, reassigning to pollmann.
Assignee: jst → pollmann
Comment 7•24 years ago
|
||
Nominating for Mozilla 0.9 since this bug stops people from submitting forms
that they can submit when using IE.
Keywords: mozilla0.9
Comment 8•24 years ago
|
||
Assignee | ||
Comment 9•24 years ago
|
||
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
Assignee | ||
Comment 10•24 years ago
|
||
Actually a variant of 65609
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Comment 11•24 years ago
|
||
*** This bug has been marked as a duplicate of 65609 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•