Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Using functions in Link element?
JacovT
Junior Member

Posts: 5
Registered: 11/5/2004
Location: Midrand, South Africa
Member Is Offline
posted on 11/5/2004 at 08:17 AM Reply With Quote
Using functions in Link element?


Hi,

I was wondering, is it possible to use a function, say gotoLink() in the Link element of the Tree array?

I want to call the function like this:
[Item 1, gotoLink('Item1','http://i.am.link1/'),null]

Do note that there is more than 1 parameter passed to the function, and it seems that the comma is screwing things up a bit.

Any suggestions/workarounds?

Thank you in advance.

---JacovT
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 11/5/2004 at 11:11 AM Reply With Quote

The correct syntax would be:
['Item 1', "javascript:gotoLink('Item1','http://i.am.link1/')",null]
View User's Profile View All Posts By User U2U Member
JacovT
Junior Member

Posts: 5
Registered: 11/5/2004
Location: Midrand, South Africa
Member Is Offline
posted on 11/5/2004 at 11:52 AM Reply With Quote
Working, thanks!


Rock,

Thank you for your quick response.

This works like a charm. Thanks for pointing out what the correct syntax is.

---JacovT
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004