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: call a function from a node
geotso
Junior Member

Posts: 2
Registered: 7/30/2003
Member Is Offline
posted on 7/30/2003 at 06:39 PM Reply With Quote
call a function from a node


I've tried to substitute a link with a function but to no avail. Can Tree Menu do this, or something is wrong in my script ?

The script is:

var conf= "A warning that the page will open in a new window"

function openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}

function confirmBox() {
if (confirm(conf)) {
openBrWindow('URLoftheFile','ThePage','TheFeatures');
}
}

and the TREE ITEM is:

['External Page', "javascript:confirmBox();"]

Well, can someone tell me what is wrong with this, please? Thanks...
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 7/31/2003 at 06:56 AM Reply With Quote

You should define target frame properly in your tpl.js file:
'target' : '_self'
View User's Profile View All Posts By User U2U Member
geotso
Junior Member

Posts: 2
Registered: 7/30/2003
Member Is Offline
posted on 7/31/2003 at 03:22 PM Reply With Quote

rock,
thanks for your answer, but...

I think I wasn't clear enough in my post:
I want all nodes to 'target':'mainFrame', and ONLY the one with the function in its own window.
The change in the tpl.js will affect all the nodes. No?
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 7/31/2003 at 06:09 PM Reply With Quote

Yes, target parameter in the tpl.js affects all item target field. Standart version of the Tigra Tree does not support independent link targeting for separate item.
But PRO version supports such feature.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   

Go To Top


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