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: Menu Links Just Open New Windows
ChrisK
Junior Member

Posts: 4
Registered: 9/28/2005
Member Is Offline
posted on 10/10/2005 at 09:21 AM Reply With Quote
Menu Links Just Open New Windows


Hi,
I've tried setting the target in tree_tpl.js to _self but the menu is still opening the links in new windows. Below is the code the file is executing, could someone please advise as to what I need to change so that when I click on a link, it opens in the current window? Thanks in advance for your time, and help ...

var tree_tpl = {
'target' : 'content', // name of the frame links will be opened in


// other possible values are: _blank, _parent, _search, _self and _top

'icon_e' : 'icons/empty.gif', // empty image
'icon_l' :

'icons/line.gif', // vertical line

'icon_48' : 'icons/base.gif', // root icon normal
'icon_52' : 'icons/base.gif', //

root icon selected
'icon_56' : 'icons/base.gif', // root icon opened
'icon_60' : 'icons/base.gif', // root icon selected



'icon_16' : 'icons/folder.gif', // node icon normal
'icon_20' : 'icons/folderopen.gif', // node icon selected
'icon_24' :

'icons/folder.gif', // node icon opened
'icon_28' : 'icons/folderopen.gif', // node icon selected opened

'icon_0' :

'icons/page.gif', // leaf icon normal
'icon_4' : 'icons/page.gif', // leaf icon selected
'icon_8' : 'icons/page.gif', // leaf icon

opened
'icon_12' : 'icons/page.gif', // leaf icon selected

'icon_2' : 'icons/joinbottom.gif', // junction for leaf


'icon_3' : 'icons/join.gif', // junction for last leaf
'icon_18' : 'icons/plusbottom.gif', // junction for closed node


'icon_19' : 'icons/plus.gif', // junctioin for last closed node
'icon_26' : 'icons/minusbottom.gif',// junction for opened node


'icon_27' : 'icons/minus.gif' // junctioin for last opended node
};





var tree_tpl = {
'target' : 'content', // name of the frame links will be opened in


// other possible values are: _blank, _parent, _search, _self and _top

'icon_e' : 'icons/empty.gif', // empty image
'icon_l' :

'icons/line.gif', // vertical line

'icon_48' : 'icons/base.gif', // root icon normal
'icon_52' : 'icons/base.gif', //

root icon selected
'icon_56' : 'icons/base.gif', // root icon opened
'icon_60' : 'icons/base.gif', // root icon selected



'icon_16' : 'icons/folder.gif', // node icon normal
'icon_20' : 'icons/folderopen.gif', // node icon selected
'icon_24' :

'icons/folder.gif', // node icon opened
'icon_28' : 'icons/folderopen.gif', // node icon selected opened

'icon_0' :

'icons/page.gif', // leaf icon normal
'icon_4' : 'icons/page.gif', // leaf icon selected
'icon_8' : 'icons/page.gif', // leaf icon

opened
'icon_12' : 'icons/page.gif', // leaf icon selected

'icon_2' : 'icons/joinbottom.gif', // junction for leaf


'icon_3' : 'icons/join.gif', // junction for last leaf
'icon_18' : 'icons/plusbottom.gif', // junction for closed node


'icon_19' : 'icons/plus.gif', // junctioin for last closed node
'icon_26' : 'icons/minusbottom.gif',// junction for opened node


'icon_27' : 'icons/minus.gif' // junctioin for last opended node
};
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 10/10/2005 at 03:12 PM Reply With Quote

var tree_tpl = {
'target' : '_self', // name of the frame links will be opened in


// other possible values are: _blank, _parent, _search, _self and _top

'icon_e' : 'icons/empty.gif', // empty image
'icon_l' :

'icons/line.gif', // vertical line

'icon_48' : 'icons/base.gif', // root icon normal
'icon_52' : 'icons/base.gif', //

root icon selected
'icon_56' : 'icons/base.gif', // root icon opened
'icon_60' : 'icons/base.gif', // root icon selected



'icon_16' : 'icons/folder.gif', // node icon normal
'icon_20' : 'icons/folderopen.gif', // node icon selected
'icon_24' :

'icons/folder.gif', // node icon opened
'icon_28' : 'icons/folderopen.gif', // node icon selected opened

'icon_0' :

'icons/page.gif', // leaf icon normal
'icon_4' : 'icons/page.gif', // leaf icon selected
'icon_8' : 'icons/page.gif', // leaf icon

opened
'icon_12' : 'icons/page.gif', // leaf icon selected

'icon_2' : 'icons/joinbottom.gif', // junction for leaf


'icon_3' : 'icons/join.gif', // junction for last leaf
'icon_18' : 'icons/plusbottom.gif', // junction for closed node


'icon_19' : 'icons/plus.gif', // junctioin for last closed node
'icon_26' : 'icons/minusbottom.gif',// junction for opened node


'icon_27' : 'icons/minus.gif' // junctioin for last opended node
};
View User's Profile View All Posts By User U2U Member
ChrisK
Junior Member

Posts: 4
Registered: 9/28/2005
Member Is Offline
posted on 10/10/2005 at 03:21 PM Reply With Quote
Still Not Working


Thanks for your reply, but the link still opens the page in a new window. Attached is the .js file that I am using.



Thanks once again, look forward to hearing from you.



Chris.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 10/10/2005 at 03:23 PM Reply With Quote

Don't see attach. Please make sure you don't redefine tree_tpl var elsewhere.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Tree Menu
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
   
Tigra Tree Menu PRO
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