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: problems launching javascript from a menu item
axelsegers
Junior Member

Posts: 9
Registered: 6/1/2006
Location: belgium
Member Is Offline
posted on 6/1/2006 at 07:26 AM Reply With Quote
problems launching javascript from a menu item


I have the following tree structure

var TREE_ITEMS=[['Test-Air','/',null,['vlucht reserveren', "javascript:openTrxHkt('NCR$01','Dzb01','01');"],['nieuwe vlucht',"javascript:openTrxHkt('NCR$02','Dzb01','02');"],]];

If i click on a menu item , it opens a new window with javascript:openTrxHkt('NCR$01','Dzb01','01'); in the address bar. It seems that it doesn't execute the script in the main window , but just launch a new window with the script to execute in it. How can i solve this?

thanks !
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 6/1/2006 at 09:20 AM Reply With Quote

make sure the target is set to _self for items launching the javascript.
View User's Profile View All Posts By User U2U Member
axelsegers
Junior Member

Posts: 9
Registered: 6/1/2006
Location: belgium
Member Is Offline
posted on 6/1/2006 at 09:21 AM Reply With Quote

Thanks, where can i define the target?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 6/1/2006 at 03:42 PM Reply With Quote

you define it globally in tree_tpl.js (key 'target'), in PRO version you can redefine that locally for each item in tree_items.js (key 'tw')
View User's Profile View All Posts By User U2U Member
axelsegers
Junior Member

Posts: 9
Registered: 6/1/2006
Location: belgium
Member Is Offline
posted on 6/6/2006 at 05:28 AM Reply With Quote

Thx this works fine
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


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