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 

popup from node

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



Joined: 27 Sep 2005
Posts: 2

PostPosted: Tue Sep 27, 2005 3:14 pm    Post subject: popup from node Reply with quote

Does anybody know how to generate a popup window when a node is clicked? I tried implementing this with arbitrary HTML, but the tree seems to break if I include and "javascript:" calls in the node definition.

Here is the node definition:
['</a><A HREF="javascript:popup(...)">Display</A><a>', null, null]

Here is the popup function (defined in its own .js file):
function popup(url, options){
newWindow = window.open(url,'popup',options);
}

I have tested the popup function on a standalone page, and it works. I can include non-scripted content in the hyperlink.

Thanks,
Ted
Back to top
tedgjenks



Joined: 27 Sep 2005
Posts: 2

PostPosted: Tue Sep 27, 2005 3:45 pm    Post subject: Found answer Reply with quote

The solution was on another post in the forum - nevermind.
Back to top
Victor_Chuiko
Support Team


Joined: 12 Apr 2005
Posts: 145

PostPosted: Tue Oct 11, 2005 7:47 am    Post subject: Reply with quote

Just for other people with this question, you can find the answer here:

http://javascript.cooldev.com/forum/viewtopic.php?t=1132
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