Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
Is it possible to execute two or more client side functions with a single button click? (I have written 3 functions in my .aspx page and need to validate on client side)
If yes please send me sample code with 3 client side functions using single button click.
Regards,
NSJ

[edit]Code block removed - OriginalGriff[/edit]
Posted
Updated 30-Jan-11 20:43pm
v2
Comments
Sunasara Imdadhusen 31-Jan-11 2:32am    
please send me code snippet that you have written!
Sergey Alexandrovich Kryukov 31-Jan-11 2:51am    
What's the difference how many "client side functions"? Do you mean in parallel?

1 solution

In case you want to get them executed one by one you can simply call them like:

<input type='button'  önclick='DoWhatEver();' />


<script language="javascript">
	function DoWhatEver()
	{
		functionA();
		functionB();
		functionC();
		//...
	}
</script>
 
Share this answer
 
v3
Comments
Sunasara Imdadhusen 31-Jan-11 3:52am    
Good call!
Sandeep Mewara 31-Jan-11 3:58am    
I propose it as answer. 5!
Manas Bhardwaj 31-Jan-11 8:38am    
Encapsulated all the function calls inside one function 'DoWhatEver'. Better readability...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900