Welcome Guest Search | Active Topics | Sign In | Register

allow ctrl-click on tabstrip tabs to open new windows/tabs in browser? Options
Ken Yee
Posted: Thursday, February 18, 2010 10:10:57 AM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 22
In Firefox and MSIE, if you ctrl-click a link, it'll open in a new tab or new window.

However w/ the EO tabstrip, doing this to a tab doesn't seem to do anything. Even right clicking on a tab doesn't give you the "open in new tab" or "open in new window" link.
Is there a way to set up the tabs on a tab strip so that the browser thinks it's a link so that it can be opened in a new window?
eo_support
Posted: Thursday, February 18, 2010 10:16:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You are able to do ctrl-click on a link but the tab items are not links. If you wish to do that, you can put links directly inside each tab item (by setting tab item's Text to raw HTML like "<a href='your_target_page'>Whatever</a>"). However that will change how it looks because now it is a link and it will look like a link.

Thanks!
Ken Yee
Posted: Thursday, February 18, 2010 2:08:29 PM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 22
This almost works.
When you ctrl-click on a tab, it opens in a new tab as expected now, but it still switches tabs in the original window. So I added this OnClickScript to the tabitem:
<eo:TabItem ItemID="Standard" Text-Html="Standard Data" OnClickScript="return false;" />

Now it does stop the tab from switching. However, it also throws an error in MSIE:
'return' statement outside of function eo_web.ashx?id=17066740-6abe-49f4-95c2-ae941ad8dfbf, line 6 character 15633

If I run MSIE w/ the debugger, it stops at this eval:
;if(this.aze)eval(this.aze);if(eo_GetEventInfo().

Is there any way to keep the tab from switching in the EO tabstrip UI?
eo_support
Posted: Thursday, February 18, 2010 2:12:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please see here for how to cancel the event:

http://doc.essentialobjects.com/library/1/menucommon/handlingevent/client_event.aspx

Look for "Event Cancellation" section.

Thanks!
Ken Yee
Posted: Thursday, February 18, 2010 2:33:43 PM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 22
Thanks...magic incantation was:

<eo:TabItem ItemID="Standard" Text-Html="Standard Data" OnClickScript="eo_CancelEvent();" />

In case anyone else needs to do this :-)


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.