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 

Are dual urls possible?

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



Joined: 26 Mar 2003
Posts: 10

PostPosted: Wed Nov 12, 2003 4:57 pm    Post subject: Are dual urls possible? Reply with quote

Hello,

From the same menu click, can one send dual urls to the browser? I would need to update two separet frames with one click. Any ways to do this directly in the nodes-file?

Regards,

.brum
Back to top
guest
Guest





PostPosted: Thu Nov 13, 2003 6:24 am    Post subject: try js Reply with quote

Try it with Javascript
use a function like "load"
define in the function what you want to do when "load"
in the nodes you write instead the url:

[{"id":2},'Info',null, null,
['Info1', "javascript:load('fwu_info1.htm')", null],
['Info2', "javascript:load('fwu_info2.htm')", null]
],

works fine at my page
i use it to open a layer for Netscape and a iframe for Explorer on the same click, you can combine the href-Tag with tree expand
write in the javascript for cooltree menu
var node = tree.nodeByID();
if (node) tree.expandNode(node.index);
and the href-Tag looks like
<A HREF="javascript:load('fwu_main.htm');javascript:void(tree.expandNode(0))">
on the same click you start the javascript and open the tree at the position you wish
hope its helpfull
my english is really bad-sorry
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