Air and spry (adding observer and addEventListener to spry regions links to open for a new window)

I'm trying to add a region.addobserver and addEventListener to spry regions so the links; that come for a external feed, opens in a new(default browser) window when clicked. The on*  events in regions do not work in AIR so, is there a way to do this?
I have read a lot of the documentation on spry regions, addObserver and the addEventlistener but the samples don't deal with anything about external xml feeds with links in a spry region for a AIR app.
The closiest i saw was the gallery http://labs.adobe.com/technologies/spry/articles/air/photo_gallery.html,  but it doesn't deal with:
links,
in a external RSS feed,
in the spry region,
to a new default browser.
Has anybody  tried this before? Can it be done?
Ex:
          <div spry:region="rssDataNews" class="SpryHiddenRegion">
          <div spry:state="loading" id="notification2">Loading feeds, please wait ...<img src="assets/spinner.gif"></div>
          <div spry:state="error">Failed to load data! Please try again later</div>
            <table width="100%" spry:state="ready">
              <tr spry:repeat="rssDataNews" class="{ds_EvenOddRow}" spry:select="mySelectClass">
                <td class="cellPad">
                <span style="font-weight:bold">{title}</span><br /><br />
                {description}<br />
                 <a href="{link}" target="_blank">[Read full article]</a><br /><br />
                </td>
              </tr>
            </table>
      <div>
The <a href > only opens the url in the native AIR window. I need it to open in a web browser.
Message was edited by: dee12345654321

About on* events
They do work, but not as attribute on your HTML elements, you will need to use eventlisteners to attach them on the relevant nodes.
How: http://labs.adobe.com/technologies/spry/samples/dom_utils/add_event_listener.html
About links
Currently in Adobe AIR, its not (easily) possible to open or execute other programs on the users PC. I have seen die hard hacker user Java to get around this limitation. But i suggest you check out the Adobe AIR forum to confirm that you cant open links in the users browser.
But, Adobe AIR is basically a browser

Similar Messages

  • When clicking on links that open in a new window, the links don't open and Firefox freezes in a way. I can navigate the page I am on but cannot click to open a new tab or bookmark.

    When navigating the internet, if I come across a web page that has a link to open a picture or program in a new window, if I click on it, it does not open. Firefox immediately looses functionality in that I cannot open a new tab with the mouse wheel, right click to open a new tab, or use my bookmarks in either the drop down or toolbar to navigate away. I can usually still navigate the page that I am on, for example, (https://loanconsolidation.ed.gov/AppEntry/apply-online/appindex.jsp), when it freezes I cannot click on any of the content at the center of the page but I can still use the links from the list on the far left. For an example of the pictures, (http://www.insect-sale.com/), if you click on "New Arrivals" at the top of the page it takes you to a list of products that can only be viewed by clicking on them. Usually a picture of the item would open in a small window but it does not and Firefox freezes. This has also happen when I try a view a degree audit on a school's website where a program would usually open in a new window. The only thing I have been able to find that still functions properly when this happens is the home page button. I can click on it or use the wheel to open it in a tab just fine, but if I try and go anywhere else I cannot. The only way I can get Firefox back to normal is to use the Task Manager and end the process. Another thing I have noticed, that may or may not be related; is that my Norton Internet Security toolbar, that should show up below the bookmarks toolbar and above the tabs, only shows up about 1 out of every 10 times I open Firefox. Some days it doesn't show up at all. If it does show up and I log into Identity Safe, the autofill for the programed website works, even if the toolbar doesn't show up the next time I open Firefox.

    Go to Tools->Options->Apps
    Here you should see two columns: Content Type on the left, Actions on the right.
    Find and select excel spreadsheet or any other content type in the left column. There should be a corresponding action in the right column. What is it? You can use the drop-down list to select the option you want:
    Always Ask - Firefox will ask each time: What do you want to do with this file?
    Save file - Firefox will save this file to your computer
    Use - Firefox will give this file to the program to open it
    In case of saving, Firefox will either prompt you every time where you want the file to be saved, or save it to the default location. It depends on the preference in
    Tools->Options->General->Download

  • When I click on a link, it opens in a new window but the window is BLANK and I can't type anything. I have firefox 3.5.2

    when I click on a link to open something in a new window, it opens a new window but it's blank!!! it's driving me nuts and I did update Firefox, but since I thought that was the problem I decided to install an older version of Firefox instead. please help!!!

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    There are other things that need attention.
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    # Shockwave Flash 10.0 r32
    # Java Plug-in 1.6.0_06 for Netscape Navigator (DLL Helper)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • When I click on a link to open in a new window the window pops up blank except for "search bookmarks and history". What can I do?

    This has been happening for a while. I don't remember adding or changing any of my Firefox settings. When this happens and I need that extra window I go and use Explorer.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • When I click on a web link and hold down ctrl the page will not open into a new tab, it is just opening in a new window. How do I correct this?

    When I use to hold down the ctrl key and left click on a web link, the page use to open into a new tab. For some reason this is not working anymore. Instead when I hold down the ctrl key and left click on a web link, the link will open into a new window. How do I fix this?

    I figured out how to correct it. Not sure what exactly was happening. But I started into private browsing and then turned it off. It's been working correctly ever since I did private browsing.

  • Every link I click on is opening in a new window, and everytime I start typing a letter into the navigation toolbar, it shows up as a capital even though caps l

    Out of the blue, just a few minutes ago, every time I click on a link, it opens in a new window. It is very frustrating and annoying, and I don't know why this is happening. Also, when I start to type in the navigation bar, the first letter shows up as a capital even though caps lock is not on. I think the problems are related, but I don't know how.

    Wow, just as soon as I posted this, everything went back to normal.

  • When I right-click a link, and choose "Open in new tab", it opens in a new window instead. How can I fix this?

    So I have Firefox open, and I've tried to open tabs by right clicking and choosing "open in new tabs", but it opens in a new window instead. And yes, there are no problems with being able to open new tabs by pressing the ctrl t.

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • In FF 34.0.5 I use to be able to click on a link within an e-mail and the link would open in a new tab; it now opens in the same tab; how can i change it back?

    I'm using FF 34.0.5 (I like it). I use to be able to right click on a link, within an e-mail, and the link would open in a new tab. Now when I click on the link it opens in the same tab replacing my e-mail.
    Example - a friend sends me an e-mail containing a link to a web site he thinks I'd like. I click on the link and go to the web site and then go back to the e-mail tab and reply to him. Now, when clicking that link, my e-mail disappears and is replaced by the new site.
    How can I fix this? When this happened once before I was told to change the 'value' for a specific 'preference name' through the about:config page.
    Can anyone help jog my memory?
    Thanks!

    Is this about clicking a link in an external program?
    You can check this pref on the about:config page for external links.
    * browser.link.open_newwindow.override.external (-1)
    If this pref has the default value -1 then browser.link.open_newwindow is used.
    * http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • I want all pages to open in a new window when I click on a link, and do not want tabs.

    I just downloaded Firefox on my Mac laptop. I don't like using tabs, but prefer new web pages to open in a new window. What command do I use to achieve that?

    Look at:
    *Tab Killer: http://piro.sakura.ne.jp/xul/_tabkiller.html.en
    Use: Download Latest Version (via HTTP) and install via File > Open File

  • When I have 4 or 5 tabs open, selecting one of them often forces that tab to open as a new window and close in the original window

    FF 32.0.1. Moving between tabs that are already open, clicking on one which I have opened before forces it to close and open as a new window, which is a real pain. It seems to happen when I have 4 or 5 open tabs, rather than 2 or 3.
    This has only been happening in the last week, after a clean Windows reinstall.
    I've searched and found lots of people have problems with new windows opening when they just want a new tab, but this seems to be about opening fresh tabs rather than returning to one that's already open, so I can't find the same problem as I describe.

    This can happen if you drag a tab slightly down in the browser window while clicking.
    Firefox has a feature called tear-off tabs
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can also do this via the right-click context menu of a tab: Move to New Window
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    * https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t

  • Since the 4.0.1 update the first Firefox window I open refuses to open tabs, only new windows, and all refuse to show my bookmarks toolbar. All Sync settings and account seem lost.

    Since the update the first Firefox window I open refuses to open tabs, only new windows, and all refuse to show my bookmarks toolbar. All Sync settings and account seem lost.

    G'day again, I've also lost the option of a 'Stop loading' or 'Refresh' button.

  • With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    Of course. To do it, open a Finder window, go to Finder menu (on the menu bar) > Preferences > General, and untick "Open folders in tabs instead of new windows".

  • Every time I try to open a new tab, it open a whole new window and i am ending up with 6 or 7 unmanagable things, please help.

    every time I try to open a new tab, it opens a whole new window, which makes what I use firefox for completely unmanagable. I also updated it the other day and all the changes I made are gone!
    == This happened ==
    Every time Firefox opened
    == this evening

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • I keep getting an error window about java since I updated to firefox 8, my tabs will flash, tabs will close and open in a new window, everything stops working, firefox is non responsive, please help

    Since I upgraded to firefox 8, I get this error window that pops up says something about java. My tabs flicker or flash, the tabs will close and open in a new window then everything stops. Then firefox does not respond. When I get this error message, I have to close all tabs wait a few seconds then open it back up it will work for a little while and then do the same thing. I have disabled plug-ins that I do not use, I have cleared my cache and cookies, I am not happy at all with this new version. I waited a while before updating. The first time I was going to update, firefox would not let me keep my anti-virus plug-in. PLEASE HELP

    Hello,
    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!
    Thank you.

  • When I open a link a new window opens with the toolbar and sidebar missing, on my previous machine the link simply opened in a new tab (not window).

    When I open a link in Firefox instead of opening a new tab it opens in a new window with all of the toolbars missing including the sidebar, right clicking anywhere gives me no options to restore the toolbars. My old machine simply opened the same link that I am trying in a new tab with all my toolbars available.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for