AIR html development

Hi all ,
I am developing air application using html+javascript.
I have main html page in which their is  link btn which open second html page.
can you please let me know how to achive this code functionality.
really looking for the you reply

hi ,
I am developing AIr application using  dreamwaever. we have crated
native window .
For the home page  their are different links which will open the
different html files in same window hiding the home page. how should i
hide and show different html files in main native window.
Regards,
Manoj

Similar Messages

  • AIR apps developed using HTML+Javascript

    Hi…
    I am working on Adobe AIR.
    And now I have 3 options to develop AIR applications 1)Flex
    2) Flash 3) HTML+javascript.
    But can you please explain me when do I exactly use Flex Or
    HTML+JS Or Flash.
    One of the reason I know is Flex used for Rich UI
    applications
    Is there any list of requirements for which one of the 3
    option is most suitable to use.
    And I have some more questions.
    1) Can AIR applications(developed using HTML+Js) invoke a web
    service running on a different server
    2) Can AIR application(developed using HTML+Js) detect the
    connectivity of USB drive (I have developed 1 application that can
    detect the Network connectivity and periodically reports the status
    I want the same in case of USB(plug & play) connectivity)
    3) I have one AIR application that has one HTML form on click
    of button I am posting the form Data to Java Servlet using
    “air.sendToURL()” as shown
    <script src="AIRAliases.js" />
    <script>
    function sendURL()
    var url = "
    http://localhost:8080/InvokingServlet/Registration";
    var variables = new air.URLVariables();
    variables.username = document.f1.username.value;
    variables.password = document.f1.password.value;
    var request = new air.URLRequest(url);
    request.data = variables;
    air.sendToURL(request);
    alert("Data has been added to Remote DB...");
    </script>
    The data goes to Servlet and then Servlet thru Jdbc
    Connectivity adds the data to database “MySQL” database
    named “user”
    If I read the data from database and print in Servlet it
    displays that to “tomcat server window(log)” But I want
    the data from Servlet to send back to HTML page where I can display
    it on the same HTML page where user entered his details. So even if
    I put the result into some Scope like session or request, but Can I
    read that it in HTML+Javascript page .
    [email protected]

    quote:
    Originally posted by:
    pravinpatil23
    But can you please explain me when do I exactly use Flex Or
    HTML+JS Or Flash.
    This question gets asked about once a week. You
    can find my latest answer
    here
    and a little searching will dig up more opinions.
    quote:
    Can AIR applications(developed using HTML+Js) invoke a web
    service running on a different server
    An AIR application isn't hosted on a server, so all web
    servers are "foreign" to your AIR application. An AIR app does get
    downloaded from a server, most of the time, but it doesn't maintain
    some kind of special connection to that server.
    Because of this, there are no cross-domain restrictions in
    AIR like you have in a regular web browser.
    quote:
    Can AIR application(developed using HTML+Js) detect the
    connectivity of USB drive
    AIR does not allow low-level system access, and has very
    little in the way of platform-specific capabilities. So, you'd have
    to use a high-level, platform-agnostic way of checking for the
    drive, such as by looking around to see what files are available.
    Things like USB insert notifications are way outside the scope of
    AIR.
    quote:
    I want the data from Servlet to send back to HTML page where
    I can display it on the same HTML page where user entered his
    details.
    That question isn't on-topic here. Ask on a forum dealing
    with JSP servlets.

  • Adobe Air - HTML, Javascript and Threading

    Hello,
    I am developing an application using Adobe Air - HTML and
    Javascript. What I am trying to do is to implement threading in
    Javascript. I am using implementing threading in Javascript as per
    this Neil blog.
    Click
    Here. It clearly says that this threading works only in Firefox
    2.0 and I am trying to use this in with my Adobe Air, but when I
    try to refer a function , it gives me error saying "unable to find
    it".
    I was wondering if this is the best way to go for threading
    in Adobe Air HTML application or there is some other way also.
    Thanks,
    Jaikishan

    Hi jjalan,
    The yield and generator functionality is only available in
    Firefox's javascript execution engine. When you are executing
    javascript in AIR, it is done by the webkit and squirrelfish. Take
    a look at
    http://webkit.org/blog/189/announcing-squirrelfish/
    If you can find a javascript library that works on safari /
    webkit, chances are high that it may work in AIR.
    Also, you can always do pseudo-threading via the age old
    setTimeout()

  • AIR HTML+JavaScript app vs. hardware accelerated composing

    I'm developing an HTML application for mobiles and desktops. The application is optimized for WebKit based environment. To improve a rendering speed I'm using hardware accelerated layers (something like -webkit-transform: translateZ(0); etc...).
    This works great on my iOS devices (using PhoneGap aka Cordova to package a "native" app).
    On Windows and OS X I'm using Adobe AIR 3.5 to package a captive runtime HTML/JavaScript based application. I have found this to be the best solution (for now) even though I have tried many others (Cordova for Windows 7 / OS X, TideSDK, ...).
    The point is that the HTML rendering in Adobe AIR seems not to be hardware accelerated. Does anyone of you have experience with this? Is here any possibility to enable hardware accelerated layers in AIR HTML rendering?
    Thanks a lot

    Thanks a lot, actually I tried AIR SDK 3.6 yesterday and it seems it still doesn't support an acceleration. In a browser it works just fine even in fullscreen (zoomed page). It seems that the best way to achieve my goal will be using Cordova wrappers for OS X and Win Desktop. But as an AIR developer I really want to use AIR SDK So I will do some more tests..
    Thanks,
    Pavel

  • Leaking memory in AIR/HTML

    Dear Adobe,
    we need a little help fighting memory leaks in AIR 3/HTML application. Are there any tools or techniques you can recommend for this?
    We have AIR app developed in HTML+JS, and the amount of memory consumed grows from 30Mb on startup to 90Mb in 4 hours to 190Mb in 8 hours on Windows 7. The app heavily utilizes XMLHttpRequest in long polling mode for communication. We are aware of the potential issue with keeping references to unnecessary objects and circular references and inspected our code for this, but did not find anything suspicious.
    Would you please advise us on strategy - how to find and avoid memory leaks in AIR 3 with HTML? There was an Aptana plugin for AIR debugging, but it's only for AIR 2 and no longer useful.

    null and removelisteners for everything when your done with them Timur,
    Thats what I do and it works. But its still a pain stuff still mangers to get throught the net and takes me an age to track it down.
    I manage some complex kiosks written in flash that are on 24hrs a day. Memory leakage is a massive issue for me.
    So nulling anything and everything after use is my only weapon against memory leakage!
    Apparently though... I think with the new multithreading techniques coming to air help manging leaks easier.

  • Bug in navigateToURL? (AIR HTML/JavaScript) window name parameter not working

    Hi,
    I have to popup the default browser from a HTML/JavaScript application.
    All links on the Air page should be opened in the same tab in the same browser window that was opened by the first click on a link.
    The code I use is
    var urlString = "http://www.adobe.com";
    var request = new air.URLRequest(urlString);
    air.navigateToURL(request, "myNewWindow");
    The myNewWindow parameter does not seem to be taken into account:  a new tab is opened on every click.
    I created a new Air application in Aptana and added the following straightforward code to it:
    <html>
        <head>
            <title>navigateToURLTest</title>
            <script type="text/javascript" src="lib/air/AIRAliases.js"></script>       
        </head>
        <body>   
    <a href="http://www.google.com"
                onclick="javascript:air.navigateToURL(new air.URLRequest('http://www.adobe.com'), 'AirTestWindow');return false;">New Tab</a>
            <br />
            <a href="http://www.adobe.com"
                onclick="javascript:air.navigateToURL(new air.URLRequest('http://www.adobe.com'), 'AirTestWindow');return false;">Same Tab</a>
        </body>
    </html>
    Same problem.
    Does anyone have any idea?
    Thanks

    Is there really nobody who can answer or at least try to reproduce this? 
    It's just creating a new Air HTML/Javascript application with one link with a named window target!

  • AIR HTML component problem

    I am using the AIR HTML component to load various website
    directories with. However, any directory that gets loaded into the
    HTML control that uses CAPTCHA, only loads maybe 2 pixels high
    worth of the image. Is this a bug with the HTML control itself, or
    have I failed to instantiate something? To see what I mean, try
    loading this URL into AIR's HTML component.
    http://www.mygreencorner.com/submit.php

    I might add that this is flex 3 Retail version, not the beta.
    Seems to work in the flex 3 milestone 4 beta.

  • Global error handlers in AIR/HTML

    Dear Adobe,
    there is good article on flobal error handling in Flex and AIR 2.0: http://www.adobe.com/devnet/flex/articles/global-exception-handling.html
    Is there a global javascript exception handling mechanism in AIR/HTML? window.onerror does not work (that seems to be Webkit bug fixed in latest Chrome, but not yet in the AIR environment).

    Dear Adobe,
    any thoughts?)

  • Alert in adobe air / mobile development

    I can't seem to do Alert.show like I do in regular flex apps,
    I can't import mx.controls.Alert is there a equivalent in adobe air or how do you go about popping up error messages?

    So is there Alert.show() for adobe air/mobile developement??? I was wonder it hasn't been added or is there an alternative for it?

  • Using Facebook SDK in Air HTML environment

    Hi,
    I am building an AIR application using HTML/JS and I'm trying to work with Facebook Javascript SDK for some simple functionality.
    It seem however when running and an AIR environment I am not able to access the FB object.
    I have the SDK locally so I know its there but simple FB.init() and FB.login() are non-existent and without errors...
    I also tried using the FB AS3 library by incldeding it in <script> tags but this gives me an error
    TypeError new window.runtime.com.facebook.graph.Facebook() is not a constructor
    Don't know if its because my xml namespace is version 2.0 and not 1.5 (1.5 errors as well but it says some IFilePromise class is not found.
    Can the Javascript SDK be used in building Adobe AIR HTML apps?

    Annoyingly the SDK hasn't been updated in over three years. I've had a casual look via Visual Studio's object inspector to see if I can spot any new methods or properties that could be useful but if they are there then they are hidden well. Media Kind, for example, was introduced in iTunes 9, I think, but can't be read from code.
    I don't know what tasks you're hoping to automate, but you might find some of my scripts useful either in their own right or as food for thought.
    tt2

  • Consuming SOAP services from AIR/HTML (JavaScript).

    Hi All.
    I am trying to consume SOAP web services from an AIR/HTML application for a research on AIR I am doing for my company, and I am having very little success.
    I am creating JavaScript clients using apache's cxf wsdl2js utility.
    When I try to use the client to call any web service I've tried, I always get an 'error 500' response.
    The web services work fine if i call them from other clients.
    Before trying cxf generated clients I googled a lot to see if there was a more native way of doing these calls from AIR, but found nothing. I don't see anything in documentation or the web about it.
    Am I the only one trying this?
    Could this be a cross-domain issue? I'm certainly hoping AIR apps don't have this issue.
    Any pointers as to how to succesfully consume SOAP services from AIR is greatly appreciated.
    Thanks!

    In Visual Basic, you can set Network Credentials like this (assuming that you first declare Public CallWebService001 As New <WebReference>):
            ' Create a new instance of CredentialCache.
            Dim mycredentialCache As Net.CredentialCache = New Net.CredentialCache()
            ' Create a new instance of NetworkCredential using the client
            ' credentials.
            Dim credentials As Net.NetworkCredential = New Net.NetworkCredential(<username>, <password>)
            ' Add the NetworkCredential to the CredentialCache.
            mycredentialCache.Add(New Uri(CallWebService001.Url), "Basic", credentials)
            ' Add the CredentialCache to the proxy class credentials.
            CallWebService001.Credentials = mycredentialCache

  • Adobe AIR HTML component ignores Google Maps GPolyline opacity

    I have a Google Maps mashup web site that I want to display
    in an
    Adobe AIR app using the AIR HTML component. My mashup shows a
    Google map with some semi-
    transparent polylines (drawn as circles) drawn with the
    Google Maps API . In Safari, everything looks
    as it should. In AIR, the polylines are opaque; the GPolyline
    opacity
    value is ignored. I've tried the AIR app on Linux and Windows
    XP.
    Has anyone else encountered this issue or have some
    suggestions?
    The web site:
    http://dstresearch.com/map.html
    The AIR code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" height="800" width="800">
    <mx:HTML id="html"
    width="100%"
    height="100%"
    location="
    http://dstresearch.com/map.html"
    />
    </mx:WindowedApplication>
    Thanks,
    Josh

    You might also want to check out the useCache property to see if this helps.  See these links:
    http://forums.adobe.com/thread/726573
    http://forums.adobe.com/thread/490497
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml

  • Adobe air html/js - application act like a browser.

    I just started in Adobe air html/js . In the current application I want to do something like this .
    I want to open the urls/web pages in the application and application should act like a web-browser to them .
    But with that I want to modify the opened pages a little, like add some css/js to them.
    Something like when you open Web pages in Firefox and a plugin (example grease monkey scripts) modifies the displayed content .
    Is it possible ?
    I tried opening in iframe it works , but I cannot add my own  JavaScript to the page (is there any way in air to remove cross domain  strictness?).
    Note: Please don't suggest that I fetch the html content of the page  and add it to the app body.  My app should really act as browser. (Adobe  air is webkit based so I think it can be achieved)

    Hi,
    Thank you for reporting this. The internal bug number for the issue is #2740755. The issue is currently under review and will be investigated by one of AIR team members.
    Regards,
    Catalin

  • AS3 Workers in Air HTML Environment?

    Hi there,
    I've begun to look into the practicality of running AS3 workers in my JavaScript based desktop AIR project.  While I have not successfully nailed down a working implementation, it would seem that this is possible. 
    However, am I right to assume that I would not be able to leverage the WebKit HTML environment from within a worker?
    Lastly, is anyone actually using AS3 workers within a AIR HTML environment?  It seems to be an entirely unspoken feature within this context.  It it not documented because this is just not possible?
    Thanks,
    Mike

    Hi,
    I've been doing some work trying to get an AS3 worker running from the webkit enviroment and am having a really strange problem.  As soon as I start the worker, the worker starts chewing through all available CPU.  No messages are being passed, it has just been started.
    Here is an example of the worker:
    package DDX
         import flash.events.Event;
         import flash.system.MessageChannel;
         import flash.system.Worker;
         public class Worker
              private var mainToBack:MessageChannel;
              private var backToMain:MessageChannel;
              public function Worker()
                   var current:flash.system.Worker = flash.system.Worker.current;
                   mainToBack = current.getSharedProperty("mainToBack");
                   backToMain = current.getSharedProperty("backToMain");
                   mainToBack.addEventListener(Event.CHANNEL_MESSAGE, onMainToBack);
              private function onMainToBack(event:Event):void
                   if (mainToBack.messageAvailable) {
                        var msg:* = mainToBack.receive();
                        if (msg == "SOLVE") {
                             backToMain.send("SOLVED");
    And here is how I set it up in JavaScript:
    var workerLoader = new air.URLLoader(),
        mainToBack,
        backToMain,
        bgWorker,
        workerBytes;
    workerLoader.dataFormat = air.URLLoaderDataFormat.BINARY;
    workerLoader.addEventListener(air.Event.COMPLETE, function(event) {
        workerBytes = event.target.data;
        bgWorker = air.WorkerDomain.current.createWorker(workerBytes);
        mainToBack = air.Worker.current.createMessageChannel(bgWorker);
        backToMain  = bgWorker.createMessageChannel(air.Worker.current);
        backToMain.addEventListener(air.Event.CHANNEL_MESSAGE, function() {
            if (backToMain.messageAvailable) {
                var msg = backToMain.receive();
                console.log('RECEIVED ' + msg);
        }, false, 0, true);
        bgWorker.setSharedProperty("backToMain", backToMain);
        bgWorker.setSharedProperty("mainToBack", mainToBack);
        // listen for worker state changes to know when the worker is running
        bgWorker.addEventListener(air.Event.WORKER_STATE, function(e) {console.trace(e)});
    workerLoader.load(new air.URLRequest("assets/flash/DDXWorker2.swf"));
    As soon as I start the worker, CPU starts being eaten up entierly:
    bgWorker.start();
    No messages being sent via the channel, just the worker started.
    Any ideas?
    Thanks,
    Mike

  • Is there a way to download inside AIR HTML?

    Hi,
    Is there any way to download files from the webpage running inside AIR HTML component? i.e. mail attachment etc.?
    Thanks!

    I'm already overriding loaded HTML page's links etc. but yes its true to determine which link is for download or to open just a web page.
    StageWebView!! I was in impression for a long time, this made for mobile! After you saying so, at help.adobe.com I can see this also for all desktop operating systems too! Great!
    Though our existing ol' HTML component is already coded/modified heavily through the application, I don't know how far we can replace them with new StageWebView.. but you simply given me an option. Thanks!
    I'll see a simple demo how enable it is downloading files in an AIR application, shortly.

Maybe you are looking for

  • Direct Connect To Folder on Server

    I want to give access to a specific folder to someone on my server with out allowing access to rest of the server. When I connect to server with the credentials I can only see the server but cannot access the folder that I want to.

  • Website and Games Detectopm

    I am really new to visual studio and was wondering how I might get two buttons, one in which loads my website on click, and one of which will detect the games on your computer (similar to programs like raptr do) and show them with a play button next

  • Multiple Selection For Selections screen field

    Hi Friends , Can any body tell me how to create multiple selection for a field in selection screen and how to capture all those values of that fields in program for database selction. Suppose i am having document number EBELN from EKKO exists in sele

  • Where are System preferences- Keyboard- Text settings saved?

    I am trying to find the Settings of my System preferences->Keyboard->Text on my drive. I deleted my whole user library, and after reloading i still find my settings in the pane( so my conclusion is they are not in the ~/Library location. Does anyone

  • MTTR/MTBR REPORT---SAP PM

    Dear All, I created one Malfunction Notification on equipment for down time.But not able to see the MTTR/MTBR report for that equipment. Please suggest. Regards Vishal