Open html's link in system's browser

I need help!!
I need open link in System's browser.
HTMLLoader has navigateInSystemBrowser property but how do
you set this value?. I need a example, please.
I don't like open link with air.navigateToURL(url) .
see you.
My html page is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
lang="en_US" xml:lang="en_US">
<head>
<link rel="stylesheet" type="text/css"
href="js/ext-2.1/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css"
href="js/ext-2.1/air/resources/ext-air.css" />
<!-- link rel="stylesheet" type="text/css"
href="css/feeds.css" /-->
<script type="text/javascript"
src="js/AIRAliases.js"></script>
<script type="text/javascript"
src="js/AIRIntrospector.js"></script>
<script type="text/javascript"
src="js/ext/ext-base.js"></script>
<script type="text/javascript"
src="js/ext/ext-all.js"></script>
<script type="text/javascript"
src="js/ext/ext-air.js"></script>
<script type="text/javascript"
src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript"
src="js/app/windows.js"></script>
<script type="text/javascript"
src="js/app/msg.js"></script>
<script type="text/javascript"
src="js/app/app.js"></script>
<script type="text/javascript"
src="js/app/html.js"></script>
<script type="text/javascript"
src="js/app/login.js"></script>
<script type="text/javascript"
src="js/php.js"></script>
<title> </title>
<script>
//abre los links en el Navegador por default
function openLink(url) {
var variables = new air.URLVariables();
var request = new air.URLRequest(url);
request.data = variables;
try {
air.navigateToURL(request);
catch (e) {
// handle error here
function init() {
</script>
</head>
<body onload='init()'>
<script type="text/javascript">
Ext.onReady(function() {
var win = new Ext.air.NativeWindow({
id: 'windows',
trayIcon: 'img/inyim.png',
instance: window.nativeWindow,
minimizeToTray: true,
trayTip: 'Inyim',
trayMenu : [{
text: 'Open Inyim',
handler: function(){
win.activate();
text: 'Exit',
handler: function(){
air.NativeApplication.nativeApplication.exit();
width:300,
heigth:400,
resizable: true,
visible:true
//application.init();
win.show();
</script>
<a href="
http://www.google.com.ar">ir</a>
</body>
</html>

Yes, the cookbook version works in AIR.
Here it is
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
      <![CDATA[
            private function init():void
                  html.htmlLoader.navigateInSystemBrowser = true;
      ]]>
</mx:Script>
      <mx:HTML location="test.html" id="html" creationComplete="init()"/>
</mx:WindowedApplication>

Similar Messages

  • JSP page open a web link in a new browser

    How i can open a web link from JSP page to a new web browser?
    regards,
    deemy

    How i can open a web link from JSP page to a new web
    browser?JSPs can't open any client browser windows, if that's what you mean. Javascript and HTML can, though. You should get your understanding of JSPs straight.

  • The browser Working very slowly at the first time open or when i open a new link And not as well as by And I have Operating system xp sp3 Updated

    the browser Working very slowly at the first time open or when i open a new link
    And not as well as by
    And I have Operating system xp sp3 Updated
    And i get Stop in the script

    '''I fixed mine by removing the Ask.com extension.'''
    Tools
    Add-ons
    Settings icon
    View Recent Updates
    Ask.com '''DISABLE'''
    Running FF 8.0 on Windows 7 (64-bit)

  • Open link in users default browser instead of the AIR built in one

      Hi, i am creating an AIR application using Web thejnology(html,javascript and css). The problem is that i have a link and when clicking on it the link is opened in the AIR browser not in the users browser. Is it possible to open the link in the users browser? This is how i done it :  <a href="https://www.designersbookshop.com/" target="_blank" >Click here to visit us!</a>

    To do this for all links, set the HTMLLoader object'snavigateInSystemBrowser property to true.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml#navigateInSystemBrowser

  • How Can i open Html file in a Browser from Jar file

    Hi
    i am having Html help files inside my Jar file ... if i use
    getclass().getRource("\lib\start.html");
    it is not opening ... so i have to ship seperate folders for html files along with jar files.... can anyone give the solution to have(open) html files inside the jar file and to open then in a default browser of any OS
    Regards
    Ganesan S

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • How does thunderbird open a http-link within a browser?

    I often get mails with http-links. On my previous system I could click on the link and the browser window opened showing the web page.
    If I click on a link on my thunderbird nothing happens. I am sure it is possible to configure thunderbird to open http-links in the default browser on the system. However I have not found the possibility to configure thunderbird in that way.
    Can anybody give me a hint on how to do it?
    Thanks.

    i d'ont use it since long now but it has always been a poor trick in a lost config confile, not possible from the gui itself.
    wiki/google/forum search will sure give it to you.
    http://wiki.archlinux.org/index.php/Get … to_Firefox
    oh..seems it's possible from thunderbird itself..so easy..
    this is totally unbelievable, how could the devs let that like this..oh moz devs of course, not ours
    otherwise i've discover clawsmail a few weeks ago, very good, at least for me, and kmail when i was a kde addict

  • Open SSRS report link in browser

    Hi,
    I have developed 3 SSRS report. these report contains quality and production updates. These report will be using as visual display dashboard in production area and will be view/flash in LCD  monitor.
    My requirements is how can i open the SSRS link using an script and put a time to perform the next SSRS link.  Or it possible to use  IE9 as browser and open the SSRS link. any idea guys is very much appreciated. thank
    you. 
    Jon

    Hi Jon,
    Just as BI_group and Vishal said, there are two methods to open another report from one report in Reporting Services. We can enable an action with “Go to report” or “Go to URL” option to achieve the requirement. For more details, please see:
    Method1: Go to report
    Right-click a report item to open the properties dialog in main report, click Action in the left pane.
    Enable Go to report action, then select the main report name in the drop-down list.
    If we want to pass some parameters from main report to subreport, we can Add a parameter as below:
    Select ID (a parameter name from subreport) in the drop-down list of Name, and select [ID] (a field name from main report) in the drop-down list of Value.
    Method2: Go to URL
    Right-click a report item to open the properties dialog in main report, click Action in the left pane.
    Enable Go to URL action, the URL below is for your reference:
    ="javascript:void(window.open('http://server_name/ReportServer/Pages/ReportViewer.aspx?%2ffolder_name%2fsubreport_name&rs:Command=Render&parameter_name="&Fields!field_name.Value &"'))"
    For more information about Drillthrough, Drilldown, Subreports, and Nested Data Regions (Report Builder and SSRS), please refer to the following document:
    http://msdn.microsoft.com/en-us/library/dd207141.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Open HTML pages in the same Browser

    HI All,
    I have a GUI with Help buttons which are required to open Help files in the default browser.
    Now i am able to acheive this using Runtime.getRuntime().exec("cmd /c start iexplore url")
    But the problem here is everytime the user clicks on the help buttons on various screens of the UI it opens a new browser instance where as i want all the help files to open in the same browser window.
    How do i acieve this?
    Also i tried using rundll32 url.dll, FileProtocolHandler url... the problem with this command is it doesnt recognize the querystring part of the url.
    For ex : http://forum.java.sun.com/post.jsp?forum=31&skldfsdkfj
    here the cmd only recognizes until http://forum.java.sun.com/post.jsp and the rest of the url is truncated when the browser opens. Do i need to escape "?" in my java application itself
    I escape & with ^& and this works..But how abt for "?"
    Anyone has any idea abt this....Pls help
    ADN

    all browsers ask you when you install them if you want that one to be the default one.
    So yes, start or run32dll.exe can be used to launch the default browser.
    No, you can't control which window to show it in, with the possible exception of Mozilla (or a derivitive (sp?)) might have some command-line options to do that. But you can't know that it's a Mozilla browser that will run with start or run32dll.exe.
    Your other choice would be: search the file system for browser, or just ask the user for the path to the browser's exe in a preferences dialog or something.

  • When I try to open a pdf link in my browser I am asked where I want to save the file.  I used to be asked if I wanted to open the file.  How do I get back to being asked if I want to open rather than save?

    When I try to open a pdf link in my browser I am asked where I want to save the file.  I used to be asked if I wanted to open the file.  How do I get back to being asked if I want to open rather than save?

    What browser?

  • Firefox won't open a PDF link in the browser, screen just shows blank.

    Firefox won't open a PDF link in the browser, when I click on the link the screen just goes to a blank blue screen.

    If using a Mac, go to the Firefox Plugins and disable the Adobe Acrobat NPAPI Plug-in, Version 10.1.3. This is a recent plugin update, and as soon as it was installed I noticed that PDFs wouldn't download.
    Location: [Menu] Tools/Add-Ons/Plugins
    I don't know what other side-effects it can create, but it solved my problem.

  • How do I get a link within a PDF to open a new tab in a web browser?

    How do I get a link within a PDF to open a new tab in a web browser? Previous forums (for earlier versions of InDesign and Acrobat) mention something about JavaScript, but I'm using InDesign CC and Adobe Acrobat Pro CC
    Thanks.

    When you're looking at the PDF that's on your site, is it opened in the browser or directly i Acrobat/Reader? If in the borwser, do you know if it's being viewed in the browser's default PDF viewer or Acrobat/Reader? It probably won't work in non-Adobe PDF viewers.
    Are you saying that when you click the link that two new browser tabs are opened with the same URL, instead of just one as you'd expect, or something else?

  • Is there a way to open a hypertext link in my folio?

    Hi! i have a question:
    Is there a way to open a hypertext link in my folio with java script commands inside an HTML content of my magazine,
    so that it uses the browser of the folio, rather than forcing me to leave the app and use an external browser?
    Thanks
    TKART staff

    No - you would have to rebuild the site in iWeb '06.
    Even if you did this you couldn't update the site built with iWeb '08.
    You need to install iLife '08 on the other computer - why can't you?

  • Opening HTML files

    Hi there,
    I'd love someone giving me a bit of help about this...
    AFAIK, Nokia S40 phones can't open an html file stored locally (in the phone's memory or memory card), although they can if that file is accessed through an internet connection.
    So... is there a method or piece of software that I could use to open HTML files stored locally? (I've tried some Java browsers, including Opera Mini, but they all seem only fit for online browsing).
    Thanks a lot,
    Marcos

    ok so i just realized that it doesn't make sense for a program outside the jar, like IE or Firefox, to be able to access and open a file inside of the jar. I am now looking for suggestions on how to work around this problem for my program to be able to have a simple help system located inside the jar that can be loaded during runtime.
    Thanks for your suggestions.

  • Flash-html-textfield / links in a MIAW?

    Hello folks,
    i have a problem that freaks me up:
    SETUP:
    within a director-movie (main movie) i load a second
    director-movie as MIAW (second movie). within the second movie i
    have a swf-sprite (swf movie) that contains a html-textfield.
    now i try to pass a html-string to that textfield, for
    example:
    ... see below ... ;)
    if i preview the swf-movie, that works fine.
    PROBLEM:
    within the director-movies this html-string is only
    interpreted as string, no link is available... the textfield
    displays only GOOGLE - no matter if or how " / ' is escaped ... can
    anybody hint me to a solution of this problem?!

    Flash normally runs in a browser window, and so its native
    mechanism for
    interpreting a call to the web is to send out to the browser
    to make
    this happen.
    When you place a Flash .swf inside a Director movie, either
    by importing
    or by linking the .swf, the Director movie is now the host
    for that
    file, not a browser window. While Director is fully capable
    of opening
    the new link in a browser, it doesn't understand the command
    that Flash
    is sending to it.
    What you need to do in this case is to pass the url to the
    Director
    movie and let it open the browser connection.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Is it possible to open a numeric link instead of calling it?

    When you click on a numeric link in the web browser it tries to dial it, even if it's not a phone number (even when it doesn't look anything like a phone number, although I guess it's hard to tell with international numbers.) There seems to be no option (even on long click) to actually follow the link. If true, this is a serious problem that happens to me at least several times/week (usually when browsing catalogs and trying to open serial number links for product descriptions). Am I missing something, or is Apple?

    You're not missing anything. It's something that Apple should fix, and for that to happen, tell them about the problem via feedback (this is a user forum).
    You can submit feedback to Apple: http://www.apple.com/feedback/iphone.html.

Maybe you are looking for

  • HT201263 Ipod is disabled and the normal method wont work

    I started the prosess like it said on the website on how to restore it. To hold down the middle busson intill the connect to Itunes picyure came up. Then plug it in and press restore. It was downloading the updates then its stopped and said that I co

  • RECIPIENT DESCRIPTION IN BDF and SEND COPY TO ATTRIBUTE ON FIELD

    I have a field that is 20 bytes long has the "send copy to " attribute selected. My BDF has a recipient INS and the description is "INSURED COPY"  Data prints in field as "INSURED.COPY........" (where periods are spaces)  I actually want the informat

  • How does cyrus flag the state of  mail and can we preserve this ?

    When I restore an e-mail account the user gets his mail as unread What i am saying here is We use imap accounts and I had to restore the mail from a backup, all the users got there mail back, but all as unread including the folders they created. it w

  • Quicktime Broadcaster AUDIO Input Level Setting

    Greetings all, I'm trying to record my band's rehearsal w/ QtB, but even when the Audio Gain level is on 0, but I still get distortion when playing back the recording. Are there any ways to fix this?

  • My Ipod Touch won't restore after full reset!!! please help fast!!!

    My Ipod touch 3g 8gb on 3.1.3 got some major problems recently. When I wanted to take a snapshot it just doesn't appear in photos. When I wanted to save an image from Safari it doesn't appear in photos. Then I got fed up and pressed Reset Settings. T