Welcome Guest Search | Active Topics | Sign In | Register

Changing Menu Navigate URL target on the fly. Options
Arnold Bailey
Posted: Wednesday, October 10, 2007 12:38:36 PM
Rank: Advanced Member
Groups: Member

Joined: 8/4/2007
Posts: 42
This may get convoluted.

What I want to acheive is using a treeview in one pane of a frameset where the Navigate URL is set to display in another pane in the frameset. This works fine by setting the Target to the name of the frame. What I want to add is the ability to say Shift-Click on the tree view and if the Shift key is down, change the Target to _blank so that the page opens outside of the frameset in a new window. A plain link could do this but isn't as pretty as your treeview. :-)

I'd also love to do a Ctrl-Click and have it load in a Tab in a tabbed browser but I don't think javascript understands tabs yet.

Any ideas?
eo_support
Posted: Wednesday, October 10, 2007 12:49:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi Arnold,

The TreeView won't do that. It is possible to implement by handling ClientSideOnItemClick and then use JavaScript to check the ctrl/shift key state by yourself. However it can get rather complicated to support all browsers. Generally speaking it doesn't seem to be a good idea to implement this because browser already gave special meaning to ctrl/shift keys and different browser implements them differently. Some even changes between versions.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.