Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form error 1

Status
Not open for further replies.

theocraticmind

Programmer
Apr 19, 2002
318
CA
<form name=&quot;frmEditDel1&quot; action=&quot;form_editDel.asp?submit=true&quot;>
<input type=&quot;hidden&quot; name=&quot;idx&quot; value=&quot;4&quot;>
<input type=&quot;hidden&quot; name=&quot;dataID&quot; value=&quot;1&quot;>
<input type=&quot;hidden&quot; name=&quot;act&quot;>

<input type=&quot;submit&quot; name=&quot;btnEdit&quot; value=&quot;Edit&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;document.frmEditDel1.act.value='edit';&quot;>
<input type=&quot;submit&quot; name=&quot;btnDel&quot; value=&quot;Delete&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;document.frmEditDel1.act.value='del';&quot;>
</form>

'document.frmEditDel1.act' is null or not an object?

-.^ thats what I get when I click in the buttons...
 
works fine here
<html>
<head>
</head>
<body>
<form name=&quot;frmEditDel1&quot; action=&quot;form_editDel.asp?submit=true&quot;>
<input type=&quot;hidden&quot; name=&quot;idx&quot; value=&quot;4&quot;>
<input type=&quot;hidden&quot; name=&quot;dataID&quot; value=&quot;1&quot;>
<input type=&quot;hidden&quot; name=&quot;act&quot;>

<input type=&quot;submit&quot; name=&quot;btnEdit&quot; value=&quot;Edit&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;document.frmEditDel1.act.value='edit';alert(document.frmEditDel1.act.value)&quot;>
<input type=&quot;submit&quot; name=&quot;btnDel&quot; value=&quot;Delete&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;document.frmEditDel1.act.value='del';alert(document.frmEditDel1.act.value)&quot;>
</form>
</body>
</html>

is there something else that may be in the page causing _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
actualy, the page has a ton of forms... frmEditDel1, frmEditDel2, frmEditDel3 ect. the rest work... the whole thing is generated using asp, so I can garentee that the code is the same in all cases exept that one number. also, the problem is because it's the first form. I tried adding 1 to the number (maybe there was a conflict with that name). It didn't work. Here is all the code:

 
then I'll assume there are more then one
<input type=&quot;hidden&quot; name=&quot;act&quot;>
etc..

these need to be named with unique names as well
<input type=&quot;hidden&quot; name=&quot;act1&quot;> etc..
_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
actualy, that didn't work... the star if for good thinking.

if it'll help:

<form name=&quot;frmEditDel1&quot; action=&quot;form_editDel.asp?submit=true&quot;>
<input type=&quot;hidden&quot; name=&quot;idx&quot; value=&quot;4&quot;>
<input type=&quot;hidden&quot; name=&quot;dataID&quot; value=&quot;1&quot;>
<input type=&quot;hidden&quot; name=&quot;act1&quot;>
<input type=&quot;submit&quot; name=&quot;btnEdit&quot; value=&quot;Edit&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;document.frmEditDel1.act1.value='edit';&quot;>
<input type=&quot;submit&quot; name=&quot;btnDel&quot; value=&quot;Delete&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;document.frmEditDel1.act1.value='del';&quot;>
</form>

'document.frmEditDel1.act1' is null
 
that is really odd. I ran the whole page and only the first form errors out. give me a minute if someone else does not come up with the solution.

thanks for the star _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
found it
there is a form in the upper portion of the page
that is not surrounded by <form> tags it needs to be
that is why the first form is being errored by the fact the form in front of it has no close
when I surround it by <form> tags it is fine
here's the portion
<form>
<select name=&quot;txtReport&quot; style=&quot;width:200;&quot; onChange=&quot;this.form.reportID.value=this.form.txtReport.value; this.form.submit(); return true;&quot;>

<option value=&quot;&quot; >---- SELECT ----</option>

<option value=&quot;3&quot; selected>All Fields</option>

</select>

</td>
<td>
<input type=&quot;button&quot; name=&quot;btnNew&quot; value=&quot;New Report&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;this.form.reportID.value=''; this.form.design.value='1'; this.form.submit(); return true;&quot;><br>
</td>

<td>
<input type=&quot;button&quot; name=&quot;btnRemove&quot; value=&quot;Remove Report&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;removeReport(); return true;&quot;><br>
</td>
<td>
<input type=&quot;button&quot; name=&quot;btnModify&quot; value=&quot;Edit Report&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;modifyReport(); return true;&quot;><br>
</td>
<td>
<input type=&quot;button&quot; name=&quot;btnGenerate&quot; value=&quot;Generate Report&quot; class=&quot;footer&quot; style=&quot;width:100;&quot; onClick=&quot;this.form.generate.value='1'; this.form.submit(); return true;&quot;><br>
</td>
</form> _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
actually when I really look at it that is just a continuation of the frmMain so jsut close the form </form> _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top