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

Problem with Text Element

Status
Not open for further replies.

ekbranson

Programmer
Jan 12, 2004
52
US
Hello, I am having a problem placing text in a text element.

The FORM:
<form name=&quot;frmAction&quot; action=&quot;<%= sorterAction %>&quot;>
<input name=&quot;fileName&quot; type=&quot;text&quot; >
</form>

The FUNCTION:
function link_click(fileName)
document.frmAction.fileName.value = fileName
document.frmAction.submit()
end function

The CALL:
<a href = &quot;vbscript: link_click(<%=rsUserView(&quot;lName&quot;)%>)&quot; >
<%= rsUserView(&quot;lname&quot;) & &quot;, &quot; & rsUserView(&quot;fName&quot;) %></a>

Any body see the error. I don't get an error message, it just doesn't place the text in the form. I know I must be missing something.

Thanks
 
You're using javascript notation to find the input field - try this...

<script language=&quot;javascript&quot;>
function link_click(fileName){
document.frmAction.fileName.value = fileName
document.frmAction.submit()
}
</script>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top