JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
brum
Joined: 26 Mar 2003 Posts: 10
|
Posted: Wed Nov 12, 2003 4:57 pm Post subject: Are dual urls possible? |
|
|
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
|
Posted: Thu Nov 13, 2003 6:24 am Post subject: try js |
|
|
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 |
|
 |
|
|