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!

Two procedures using OnClick 1

Status
Not open for further replies.

tripp2222

Technical User
Nov 30, 2004
32
0
0
US
Can someone please tell me if it is possible to call two procedures using OnClick and if so can you show me the syntax. I have a drop-down box that need to call two procedures. Thanks for the help in advance. Below is what I have so far in order to call the one procedure already created.
<select size="1" name="MIFGroup" onclick="PopulateDepartments(MIFGroup)" tabindex="1">
 
if the same two procedures need to be performed all the time, have the onClick call a function that in turn calls the funtions or subs for the procedures you need performed.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
You can try:

onclick="PopulateDepartments(MIFGroup):SomeOtherSub(SomeValue)"

Simple example:
Code:
<html>
<head>
<script language="vbscript">
	Sub test(str)
		alert str
	End Sub
	
	Sub test2(str)
		alert str
	End Sub
</script>
</head>
<title>TITLE</title>
<body bgcolor="#272936">
<input type="button" value="Test" onclick="test('test1'):test2('test2')">
</body>
</html>

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Thanks dm4ever it worked that is what I needed to do syntax wise.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top