Massimo...

That worked marvelously. Thank you. I should have known you already thought
of that possibility.

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Massimo Foti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 11:33 AM
To: CF-Talk
Subject: Re: TMT tabs question


> I found a ID attribute that wasn't being used in the example. But it only
> applies an ID to the HREF tag which triggers the switch, not to the "page"
> itself.
>
> Anyone have an idea?

The call to the "switching" JavaScript call looks like this whenever is
called within the <a> tag:

tmt_tabSwitch(this, 'tmtTabselected')

As soon as you assign an id attribute to the <a> tag (the way you already
discovered), you can call it like this from wherever you want:

tmt_tabSwitch(document.getElementById('yourID', 'tmtTabselected')

The only requirement is that the first argument passed to tmt_tabSwitch is
the relevant <a> tag as DOM node.
Hope it will help

----------------------------
Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
----------------------------




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245437
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to