IT Community - Software Programming, Web Development and Technical Support

Is there any way to call multiple functions with a single event?

This is a discussion on Is there any way to call multiple functions with a single event? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all, Is there any way to call multiple functions with a single event? eg: <SCRIPT LANGUAGE="JavaScript&...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-09-2008, 06:14 AM
Vani Sri Vani Sri is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 33
Vani Sri is on a distinguished road
Default Is there any way to call multiple functions with a single event?

Hi all,
Is there any way to call multiple functions with a single event?

eg:
<SCRIPT LANGUAGE="JavaScript"><!--
functionname1() {
....
}

functionname2() {
....
}

functionname() {
functionname1();
functionname2();
}
//--></SCRIPT>

<a href="#" onClick="functionname()">link</a>

Like above example.

Thanks & regards,
vani
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-12-2008, 02:02 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,158
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Is there any way to call multiple functions with a single event?

hi,
I think u can call mutiple functions in a single event
HTML Code:
<!-- call the multiple functions in single evey --> <input type="button" onclick="test1();test2();" value="Click"/> <script>
//# - Function1
function test1()
{
	alert('test1');
}
//# - Function2
function test2()
{
	alert('test2');
}
</script>
I hope it will help u
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-17-2008, 10:55 AM
valyaji valyaji is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 3
valyaji is on a distinguished road
Default Re: Is there any way to call multiple functions with a single event?

I think u can call mutiple functions in a single event
__________________
double glazing Play Fruit Machines
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Multiple records using single Insert Statement vadivelanshanmugam Database Support 0 03-04-2008 09:26 PM
How to call PHP functions from ASP.net? $enthil ASP and ASP.NET Programming 1 02-14-2008 07:04 PM
difference between call by value and call by reference amansundar Java Programming 2 09-18-2007 12:34 AM
event.clientX and event.clientY is working in IE but not work in firefox? senraj HTML, CSS and Javascript Coding Techniques 2 08-08-2007 04:27 AM
Function call and System call vigneshgets Operating Systems 1 08-01-2007 05:18 AM


All times are GMT -7. The time now is 10:02 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0