Link bar additional link open new window

I am new to flex and trying to learn. I am working on a small
site. the site will have a few navigation items. However one links
to another site. The rest are on the site I am using the bellow
code. What I need is between the customer info adn account info is
to add another link that opens a new browser window and goes to a
url. I am a bit lost and not sure how to do that or if its possible
with this. Any help would be great.
<?xml version="1.0"?>
<!-- containers\navigators\VSLinkEffects.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:WipeUp id="myWU" duration="300"/>
<mx:WipeDown id="myWD" duration="300"/>
<mx:WipeRight id="myWR" duration="300"/>
<mx:VBox height="188">
<mx:LinkBar dataProvider="{myViewStack}"
borderStyle="solid"
backgroundColor="#EEEEFF"/>
<mx:ViewStack id="myViewStack"
borderStyle="solid"
width="273"
creationCompleteEffect="{myWR}" height="137">
<mx:Canvas id="search"
label="Search"
hideEffect="{myWD}"
showEffect="{myWU}" backgroundColor="#E81414">
<mx:Label text="Search Screen"/>
</mx:Canvas>
<mx:Canvas id="custInfo"
label="Customer Info"
hideEffect="{myWD}"
showEffect="{myWU}">
<mx:Label text="Customer Info"/>
</mx:Canvas>
<mx:Canvas id="accountInfo"
label="Account Info"
hideEffect="{myWD}"
showEffect="{myWU}">
<mx:Label text="Account Info"/>
</mx:Canvas>
</mx:ViewStack>
</mx:VBox>
</mx:Application>

This does what you want, kind of:
<?xml version="1.0"?>
<!-- containers\navigators\VSLinkEffects.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
private function itemClickHandler(event:ItemClickEvent):void
if(event.label == "Open URL"){
navigateToURL(new URLRequest("
http://www.google.com"),
"_blank");
]]>
</mx:Script>
<mx:WipeUp id="myWU" duration="300"/>
<mx:WipeDown id="myWD" duration="300"/>
<mx:WipeLeft id="myWL" duration="300"/>
<mx:WipeRight id="myWR" duration="300"/>
<mx:VBox height="188">
<mx:LinkBar dataProvider="{myViewStack}"
borderStyle="solid"
backgroundColor="#EEEEFF"
itemClick="itemClickHandler(event)"/>
<mx:ViewStack id="myViewStack"
borderStyle="solid"
width="273"
creationCompleteEffect="{myWR}" height="137">
<mx:Canvas id="search"
label="Search"
hideEffect="{myWD}"
showEffect="{myWU}" backgroundColor="#E81414">
<mx:Label text="Search Screen"/>
</mx:Canvas>
<mx:Canvas id="custInfo"
label="Customer Info"
hideEffect="{myWD}"
showEffect="{myWU}">
<mx:Label text="Customer Info"/>
</mx:Canvas>
<mx:Canvas id="openURL"
label="Open URL"
hideEffect="{myWL}"
showEffect="{myWR}">
<mx:Label text="URL Opened"/>
</mx:Canvas>
<mx:Canvas id="accountInfo"
label="Account Info"
hideEffect="{myWD}"
showEffect="{myWU}">
<mx:Label text="Account Info"/>
</mx:Canvas>
</mx:ViewStack>
</mx:VBox>
</mx:Application>

Similar Messages

  • Links opening new Windows

    Is there a global setting that controls whether links in Portal
    open new IE Windows. I know how to edit this attibute for URL
    items in content areas, but our portal pages and portlet links
    have recently began to open new windows without any explanation.

    iBod:
    Thanks! That did indeed solve the problem. I knew the solution was simple, I just couldn't find the right "Preference" to adjust. It is certainly non-intuitive to have it under the "Tabs" preference panel -- I must have looked right at it and dismissed it as not relevant to my problem. I have now marked this question as "Solved."
    Mulder:
    I have given tabs a try -- many times. It just isn't my style. Now with this preference properly adjusted, I vastly prefer using windows-style browsing. Also, I can scroll through all the open windows in a breeze using "Command-tilde (~)", which is like riffling the pages of a magazine. Very convenient. Another problem with tabs is that all open pages have a tab visible in the top window, which means that anyone seeing the screen can see the names of all currently open Web pages. In my work environment, that is not acceptable -- I only want the top window to be visible at any given time, as it would be a security issue if random passersby walking behind my work area could see exactly which windows I have open at a particular time. In any case, I marked your answer as "Helpful" as well, since the question was already "Solved" by iBod's answer, which was posted first here chronologically.

  • Link opens new window

    How do i have a link open a new window?

    <a href= "
    http://www.anything.com/something"
    target=_blank>link text</a>

  • List of Links, opening new window on click

    Dear developers,
    I'm Developing a solution in which I need to show a list of links and when you click opens a new window . Every name of the list have different link.
    In conclusion, I want to show a list of links that when you click to open in a new window.
    My solution:
    1. I've implemented a Select One List associated with a valueChangeListener.
    2. ValueChangeListener call ManageBean method, and in the method I calcule link
    3. Using JavaScript inside ManageBeanMethod I open the new window.
    It works well, but when I click on the same value valueChangeListener not call the method. As the value doesn't change, doesn't activate the valueChangeListener. I need to always call ManageBean method.
    They know how you fix it from my implementation?+
    There is a better solution? there is an especific component?+
    Edited by: 966474 on 19-oct-2012 1:31

    Hi,
    check this thread {thread:id=2452884}

  • Question about in-browser links opening new windows

    Is there a plugin or setting which will force Safari to open all new windows as tabs? I know that there is a setting for that from other applications, but how do you force Safari to do that for itself? I'm getting sick of browsing for a half hour or so to find that I've got a dozen or so windows open. Yes, I know I can combine them all into one window, but why can't I set the browser to do that automatically?
    I have the block pop-ups enabled as well. What I want is a plugin or setting that will always open in-browser links as new tabs(instead of new windows) without having to use command-click. Is there anything like that out there?

    Hi Sailingmaster,
    The only one I know of is Saft. It's shareware, but it comes with a ton of features. Also, Li Hao (developer) has done and continues to do a great job of keeping it up-to-date, and incorporating end-user suggestions. Highly recommended.
    Yang

  • Links opening new window/tab

    As far as I can remember before Safari 3, I could set it so that if I clicked on a link in an email it would NOT open it in a new tab OR Make a new window appear. I like it this way but now it seems in Safari 3 you only have the choice of a new tab or new window. Is there a way to have links from mail just keep one Safari window and load the pages from the links over each other without opening a new window? Am I remembering correctly that you could do this in previous versions of Safari?
    Paul W.
    Message was edited by: paul wilson5

    You can override how links are opened via the browser.link.open_newwindow.override pref.
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    Use this for links opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    See also:
    *http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features

  • Error when link opens new window

    I have the community projects portlet on the community home page, and when a user clicks on one of the projects, the project opens, but the base window turns into "Page not found". When I do the same thing as admin, it does not do this. Any ideas? Thanks.

    F.,
    We have been seeing some strange issues with new windows, sessions, etc. with IE8 over the last few weeks (particularly).  Do not have any definitive answers yet but may have something to do with the IE security fixes that came out recently.  If you (or your users -- not sure what role you have) have the ability to log a service request I would suggest doing so to allow us to better troubleshoot and track these issues.
    I will come back and update this thread when we have something more definitive.  Right now we are trying to catalog the various behaviors we are seeing and determine what might be going on.
    Best regards,
    Stevan - Oracle

  • Clicking Fx in the Vista quick launch bar now always opens new window. How can I get it to open the current instance?

    This may be a Vista issue since Opera now always opens with a new speed dial window instead of just recalling the browser. This problem is recent, perhaps a month old.
    Fx is not the default so I don't know if it's also a link issue

    Make yourself a copy of the Fx in the task list, then you can either create a new instance or activate the existing one.
    Probably missing the point, but I have been away from Vista for quite some time.
    Regards

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Open Link in New Window Option Not Working in Top Link Bar

    Hello,
    We have a 'Popular Links' section in our Top Link Bar for our intranet site that contains a list of frequently used links. Since most of these links navigate to sites outside of SharePoint, we would like these to open in a new tab or window when clicked. 
    I've enabled the 'Open Link in New Window' option under Site Navigation Settings for each link, however when a user clicks the links that have had this option enabled the content is still loaded in the current tab.
    Is this the correct set of steps to enable this content, or is there a better way to accomplish this that actually works?
    **SharePoint Server Publishing Infrastructure has been activated.

    You can try deactivating Minimal Download Strategy feature present under "Manage Site Features"....

  • Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc

    Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc.. Please Help!

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Why does firefox opens new window/tab when i click on a link

    if I click any link in Firefox it will open another blank window in addition to the link clicked, blank window opens on top. how do I stop this

    If a website codes its links to open in a new window, you can divert that to a new tab.
    The basic setting for this is here:
    "3-bar" menu button (or Tools menu) > Options > Tabs
    The first checkbox: "Open new windows in a new tab instead"
    In some cases, a website uses a script to launch a new window with special features, such as a set height/width, or with one or more toolbars removed. To avoid breaking sites that create dialog boxes this way, Firefox does not normally divert this kind of window to a new tab. However, if you wanted to send these to a tab as well, there is a hidden setting you can change. (See: https://support.mozilla.org/questions/1035103#answer-662627])
    If Firefox is sending ALL links to new windows or new tabs, you might have an extension like Tab Mix Plus or Tab Utilities which changes the built-in tab handling features. You would need to explore their settings to get it just the way you want it.

  • Open link in new window inSafari  5.0.1

    Without doing anything I know of I no longer have "OPEN LINK IN NEW TAB" when I right click over a link. Also when I right click "OPEN LINK IN NEW WINDOW" I get a blank TAB that says "UNTITLED".
    Thanks for any help

    HI,
    From your Safari Menu Bar click Safari/Empty Cache.
    Relaunch Safari.
    If that didn't make a difference, troubleshoot the Safari .plist file.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Now launch Safari. If Tabs work as they should, them move the .plist file to the Trash.
    Carolyn

  • Itouch safari only opens links in new windows

    It only started a little while ago but my itouch suddenly ONLY opens link in new windows which can get frustrating. Anyone know if this is normal now or if there is a problem I can fix?

    HI and Welcome to Apple Discussions...
    From the Safari Menu Bar click Safari/Preferences and select Tabs from the Menu. Perhaps your settings changed after the update.
    Also, if you didn't repair disk permissions after the Safari 5 update, it would be beneficial to do that.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn

  • URL iView doesn't open link in new window

    Hi All,
    I'm have an URL iView that I want to display in the portal content area but whenever the user clicks on a hyperlink on that iView launch a new window for the link.
    I've tried using the 'Open iView links in new window' without any success. Is this supposed to work or this property is for another purpose...? Can someone point me to a solution.
    Thanks

    Hi Detlev,
    I checked what you said. I've already looked at that page but didn't saw that important disclaimer. My problem was that I didn't had a captured area-URL iView but a full page-URL iView as it says:
    +These properties are relevant in the following instances only:
    §         The iView content is displayed in its source format. The rendering type must be defined as Keep Source Formatting. See Defining the Look and Feel of the iView Content.
    §         The iView content displays a captured area, and not the entire Web page. See Selecting the Capture Area.+
    I only had to change the 'Open iView links in new window' to Yes after capturing a part of my page and it started working.
    Thanks for sharing

Maybe you are looking for

  • Report generation toolkit and column

    Hello, i asked this question before, but this time i just needed some input.. I originally asked, if i am doing various experiment sets and say each sets takes in about 1000 data points, and i have to do 50 such experiments continously i wanted to kn

  • What will happen if i restore my iphone

    t will happen if i restore my iphone? i heard that i will not see my past datas anymore like notes,pictures and apps. i didn't back up my iphone and i dont want to lose my datas

  • VGA Ausgang, ThinkPad w540

    Versuche bei meinem ThinkPad W540 einen CTR-Monitor über den VGA-Anschluss zum laufen zu bringen, leider bekomme ich bei der Auswahl der Auflösung immer nur geringe Auflösungen mit max. 1280x1024 vorgeschlagen, obwohl der Bildschirm (Sonx GDM-FW900)

  • Oracle 9i Release 2 Windows OS support

    Support Team, We are planning to install Oracle for development purpose. Do let us know which Windows O.S (32 bit or 64 bit) editions will support for Oracle 9i Release 2 (9.2.0.1.0) Regards, Net Team

  • Html comment around css

    When you have the following code: <style type="text/css"> <!-- .header { font-weight: bold; background: #979797; --> </style> What does that mean? This header class will only take effect in IE? Or, is does the <!-- and --> do something else?