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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why form.text.value = Undefined?

Status
Not open for further replies.

Tracey

Programmer
Oct 16, 2000
690
0
0
NZ
Hi [wavey]

Could someone who knows what they are doing (as opposed to myself) take a look at this and tell me why my "Criteria" variable is being returned as "Undefined" when i am typing text into the input"item" ??

[cheers] in advance

Code:
<Script language=&quot;javaScript&quot;>
 function showreport(criteria, criteriaID){
window.open('/cgi-bin/etrace.exe/showreport?ID=1&criteriaID=' + criteriaID + '&criteria=' + criteria + '&report=item','anywhere','toolbar=no,location=no, directories=no, status=no, menubar=yes, resizable=yes, copyhistory=no, scrollbars=YES, width=650, height=600');
}
</script>


<Form action=&quot;/cgi-bin/eTrace.exe/showreport&quot; method=&quot;POST&quot; name=&quot;filterform&quot;>
<input type=HIDDEN name=ID value=&quot;1&quot;>
<input type=HIDDEN name=report value=&quot;item&quot;>
<input type=HIDDEN name=filter value=&quot;item&quot;>
<p><input type=HIDDEN name=ID value=&quot;1&quot;>
<table bgcolor=&quot;#FFA07A&quot; width=&quot;50%&quot;>
<thead bgcolor=&quot;#F08080&quot;>
<td align=center colspan=4>Enter Item Serial Number</P></td></thead>

<tr bgcolor=&quot;#F08080&quot;><td>Serial Number: </td>
<td><input type=text name=serno size=45></td></tr>

<tr><td colspan=2 align=right>
<input type=Submit name=Submit value=&quot;Show Report&quot; onclick=&quot;javascript:showreport(item,filterform.item.value); return false;&quot;> 

 <input type=&quot;SUBMIT&quot; value=&quot;Cancel&quot; name=submit>

</td></tr>
</table></form>
 
omg... sorry i take all this back... was using the wrong input name value... arghhhh
Friday 13 here in NZ
 
be a bit more careful while coding [bigears]


regards,
JK
 
I only wish I had a $ for everytime I did that [lol]

____________________________________________________
[sub]The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924[/sub]
onpnt2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top