JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make a call to javascript in tree

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
ccb



Joined: 16 Mar 2010
Posts: 2
Location: Ohio

PostPosted: Tue Mar 16, 2010 9:26 pm    Post subject: How to make a call to javascript in tree Reply with quote

I have a chunk of javascript that loads seperate html pages in a hidden iframe. Is it possible to execute javascript from tree menu items.

Standard page link looks like this:
<a href="testpage.html" onclick="return dw_loadExternal(this.href)">Test Page</a>

How do I get that to work in Tree Node?

API: jsPath feature looks promising, but I can't figure out how to implement it Confused . Yes, I am running the Professional version.

Your help is appreciated.
Back to top
ccb



Joined: 16 Mar 2010
Posts: 2
Location: Ohio

PostPosted: Tue Mar 23, 2010 7:17 pm    Post subject: Reply with quote

After looking around a little harder, I found this example - that works:

["My Node", "javascript:void(My Javascript('URL.htm'))", null],
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1