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

Simple VBScript Question

Status
Not open for further replies.

martim07

Technical User
Nov 6, 2004
9
US
Hi,

I need to have a text area open up when a user clicks on a selection in a drop-down menu. I already have my database connected through ASP, and I have the information I want populating the textarea, I just need to know the function. Would this be assigned to the onClick event of the button?

Thank you
 
You'd have to store the information in a Javascript variable, then onclick="document.forms['formname'].elements['textareaname'].value=variablename;"
 
Thanks!

But what about the VBScript onClick event?
 
I used Javascript in my example. I haven't used VBScript client side on web pages, but it should be something like:

onclick="document.forms[""formname""].elements[""textareaname""].value=variablename"

You'd have to store the information in a VBScript variable on the web page then.

If there's ANY chance someone will be using a browser other than Internet Explorer, VBScript won't work for them.

Lee
 
Just for clarification, the onclick event is NOT language oriented/specific. It can be handled by Javascript or VBScript, and the syntax is the only thing that is significant in calling the specific language function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top