Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-05-2007, 03:27 AM   PM User | #1
6arredja
New Coder

 
Join Date: Nov 2004
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
6arredja is an unknown quantity at this point
two commands

how do you execute two js commands through the <a> tag

ex:
Code:
<a href="#" onclick="tggle('home'); Effect.SlideDown('home');">adfasdf</a>
that does not work
6arredja is offline   Reply With Quote
Old 01-05-2007, 04:00 AM   PM User | #2
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,549
Thanks: 15
Thanked 131 Times in 124 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by 6arredja View Post
how do you execute two js commands through the <a> tag

ex:
Code:
<a href="#" onclick="tggle('home'); Effect.SlideDown('home');">adfasdf</a>
that does not work

That should work. Are you getting any JS errors? Check Mozilla's JS console....

You can also write that like this, slightly more efficiently:

Code:
 <a href="javascript: tggle('home'); Effect.SlideDown('home');">adfasdf</a>
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
[Related videos and tutorials are also available at my YouTube channel]
chump2877 is offline   Reply With Quote
Old 01-05-2007, 04:07 AM   PM User | #3
6arredja
New Coder

 
Join Date: Nov 2004
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
6arredja is an unknown quantity at this point
im trying to use my own script along with scriptaculus and its not working to well
6arredja is offline   Reply With Quote
Old 01-05-2007, 04:13 AM   PM User | #4
6arredja
New Coder

 
Join Date: Nov 2004
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
6arredja is an unknown quantity at this point
geez i feel like such a noob

i had the scriptaculus file pointed to the wrong directory

sorry for wasting time lol
6arredja is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:26 AM.


Advertisement
Log in to turn off these ads.