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

Calling a function through button click event

Status
Not open for further replies.

MavrickStl

Programmer
Feb 20, 2001
71
US
I am trying to call a function through a button click event.

Ex:

Response.write "<INPUT TYPE=""Submit"" VALUE=""Copy"" onClick=""return dataset()"">"


Dataset() function should be able to return values returned by following query:

Select Desc2 from XXXX where bla bla bla

If there is nothing to return it will not return 0.

Else it will return DESC2 (varchar2 in the DB) field.

I will use DESC2 field to populate a textarea field on the same form:

<Textarea cols="85" rows="1" NAME="Second1" <%=rstemp("desc2")%></textarea>


Any clues how to go about it.

Thanks,

Mav
 
I'm afraid you want to mix client-side and server-side code ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top