|
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?
|
|
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!
|
|
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?
|
|
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.aspxLook for "Event Cancellation" section. Thanks!
|
|
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 :-)
|
|