Hi ![[wavey] [wavey] [wavey]](/data/assets/smilies/wavey.gif)
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" ??
in advance
![[wavey] [wavey] [wavey]](/data/assets/smilies/wavey.gif)
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] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Code:
<Script language="javaScript">
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="/cgi-bin/eTrace.exe/showreport" method="POST" name="filterform">
<input type=HIDDEN name=ID value="1">
<input type=HIDDEN name=report value="item">
<input type=HIDDEN name=filter value="item">
<p><input type=HIDDEN name=ID value="1">
<table bgcolor="#FFA07A" width="50%">
<thead bgcolor="#F08080">
<td align=center colspan=4>Enter Item Serial Number</P></td></thead>
<tr bgcolor="#F08080"><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="Show Report" onclick="javascript:showreport(item,filterform.item.value); return false;">
<input type="SUBMIT" value="Cancel" name=submit>
</td></tr>
</table></form>