Adobe AIR (JavaScript/AJAX) is dead?

Hi all,
I used to code in AIR for JavaScript / Ajax in v1 and v1.5 of AIR. I am trying to refresh my coding skills into this platform but there seems to be very poor knowledge base and material at the web, I am wondering whether this platform is somehow deprecated and whether only Adobe AIR (Flex) is supported.
Can you please clarify?
thank you,
George

Bump! I'd like to know, too. We have a large html/javascript app and are wanting to use it on Android or iOS, but it kinda seems like everything is Flex based now.... ???
- Jack

Similar Messages

  • Printing in Adobe AIR (JavaScript / Ajax) whereas skipping the print dialogue

    Hi,
    Can I do what the topic says? Basically I would like to check with a timer a URL and once something appears there I want it to be sent directly to my default printer.
    Is that possible? And if Yes, how?
    thank you,
    George

    Hi, I have not investigated exactly your problem as yet but this seems to be related to it:
    http://anirudhs.chaosnet.org/blog/2008.02.15.html
    For me it was printing only the upper-left corner
    but specifing a Rectangle for size for PrintJob.addPage() second argument fixed that
    please consult
    http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context =LiveDocs_Parts&file=00000334.html
    for help on Rectangle. You can use geom instead of display;
    frameworks/libs/air/AIRAliases.js contains an alias directly to geom:
    air.Rectangle = window.runtime.flash.geom.Rectangle;
    so you may use directly air.Rectangle to construct the size.
    It works on AIR 1.5 as well as AIR 2 beta
    Code snippet I have used and worked:
    function doPrintAir()
        var pjob = new window.runtime.flash.printing.PrintJob;
        if ( pjob.start() )
            var poptions = new window.runtime.flash.printing.PrintJobOptions;
            var rectangle = new air.Rectangle(0, 0, 800, 800);
            poptions.printAsBitmap = true;
            /* poptions.pixelsPerInch = 300; */
            try
                pjob.addPage(window.htmlLoader, rectangle, poptions);
                pjob.send();
            catch (err)
                alert("exception: " + err);
        else
            alert("PrintJob couldn't start");
    //comment the line below if you do not want to mess with existing
    //window.print
    window.print = doPrintAir;
    this make js window.print() available for use as one would normay do.
    Let me know if this helps and fixes your problem.
    Best regards,
    Daniel Baragan - Adobe AIR Engineer

  • Link in Adobe AIR JavaScript app is incorrectly opening the app in the default browser

    I have a couple of links in my Adobe AIR JavaScript app that are part of the app's UI, which when clicked are causing the app to be loaded into a new tab in my default browser.
    This is only happening with two links (Save and Cancel on a form), and not all links in my UI.  The two links that are having the issue are defined in an external HTML file that I load a runtime and connect to the DOM.  The links that are defined in the main HTML file that is loaded when the app starts up do not have this problem.
    Here is how I am loading the template and plugging it into the DOM
    var win = document.createElement("div");
    var f = air.File.applicationDirectory.resolvePath("lib/partials/edit_form.html");
    var fs = new air.FileStream();
    fs.open(f, air.FileMode.READ);
    var content = fs.readUTFBytes(fs.bytesAvailable);
    fs.close();
    var template = new Template(content);
    win.innerHTML = template.evaluate(data);
    document.body.insertBefore(win, document.body.firstChild);
    The links themselves are coded like this:
    <a href="#" id="save_button" onclick="return false;"></a>
    <a href="#" id="cancel_button" onclick="return false;"></a>
    I am using the Prototype JS library to observe the 'click' event for each of these links like so:
    $('save_button').observe('click', onSave);
    $('save_button').observe('click', onCancel);
    This app shows content created by users, which can contain links to external web sites.  To get the external links to open in the browser (as opposed to inside my Adobe AIR window), I am doing the following in a script tag in the head of my main HTML file:
    window.htmlLoader.navigateInSystemBrowser = true
    I've found that if I set window.htmlLoader.navigateInSystemBrowser = false, then the issue with the Save and Cancel links described above goes away.  However, I need to have window.htmlLoader.navigateInSystemBrowser = true so that external links in the user content open up in the browser, not in Adobe AIR.
    Another piece of evidence is that the Save and Cancel links only incorrectly open a browser the first time you click on them after launching the app.  Subsequent clicks work fine and do not have the issue.
    Any ideas on why the links that are plugged into the DOM after app start up have this issue, and only the first time you click on them?

    Not sure where this comes from, but I suspect it has something to do with the security restrictions that AIR has in place, related to dynamic JS evaluation after the document is loaded.
    Make sure you read http://help.adobe.com/en_US/air/html/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0e.html#WS 5b3ccc516d4fbf351e63e3d118666ade46-7ef8
    For example, I've spotted the two onclick="return false;" you have in your code. The evaluation of the onclick attribute after the page loaded event would fail in AIR.

  • Adobe Air (Javascript) Barrierefreiheit

    Kann mir jemand sagen wie weit Adobe Air Applicationen Barrierefrei entwickelnt werden können.
    Die visuellen vorraussetzungen wie Kontrast und Schriftgröße sind ja zu realisieren.
    Aber wie sieht es mit der Funktionalität mit Screenreadern und anderen Vorraussetzungen aus?
    Mit der Verwendung von Flex gibt es ja einige Informationen nur leider habe ich nichtz zu JavaScript gefunden, oder kann ich eine Adobe Air Application wie einen Browser ansehen?

    Also, ich kann momentan nix mit einem Screenreader ausprobieren, weil meine Soundkarte kaputt ist ;-)
    Am besten mal den Thunder Screenreader installieren und probieren, ob der mit einer HTML/Javascript - basierten AIR-Anwendung zurecht kommt.

  • Adobe AIR HTML / Ajax Developement and Android

    Just confirming...  I haven't been developing in Flash since the days of Actionscript 2.0.  I've been mostly doing HTML / Ajax dev the past couple of years.  I started playing around with developing apps using HTML and Ajax.  I read in another thread that for Android dev, you have to use flash.  Is this true?  If so, is there any plans to open this up more?  I realize there might be some things that might not translate over, such as the touch interface, but I would really love to create some applications without having to get back into flash or learning Flash Builder. 

    Joe is correct on the support for HTML & AJAX. If you want to leverage those skills, you are going to have to stick with just using the on device web browser (which should be fairly robust) or look at alternate solutions like PhoneGap or Titanium's Appcelerator.
    Chris

  • Adobe Air connection to SQL

    Hello,
    I have to create a desktop Adobe Air Javascript application to connect to the SQL Server and fetch the data based on the user input. Say when the user enters a customer code all the customer details would show up on the screen (Adobe Air window). Can sombody please help me with this? I'm stuck with this issue for long time.
    Thanks,
    Amol

    Hi Amol,
    This will give you an idea:
    Adobe LiveCycle ES3 * About data connections

  • Installation file (package) with adobe air sdk

    I made an installation file with adobe air (javascript, html via AIRSDK) ,
    but when it's packed and I run the file, it sends an error message "This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance."
    I don't know maybe I should try dreamviewer? because I'm sure about the codes
    I want to make such a file (as below image)
    but via airsdk it makes this:
    with air written on it

    try to update your air runtime. This is popular issue when developers use newer sdk but old runtime. Or include runtime to your app

  • Javascript ajax loaded in adobe air

    Hello to all,
    I come on this forum because i meet a problem with AJAX and JAVASCRIPT.
    In my main script of ADOBE air, i load with "Ajax" the javascript contents but this javascript not execute not.
    All my functions are in the < head > only the calls are in the contents
    in charge of contents loaded with and the functions are called by onclick.
    That here is my  script for the forum, but is characteristic of my problem:
    <head>
    <script type="text/javascript">
    function getRequeteHttp() {
    ////the contents was supprimed for the example////
    function sendRequete(url) {
    ////the contents was supprimed for the example////
    function receiveReponse(requeteHttp) {
    if (requeteHttp.readyState==4) {
    (requeteHttp.status==200) {
    visibleReponse(requeteHttp.responseText);
    else {
    alert("error");
    function visibleReponse(rep) {
    document.getElementById("back2").innerHTML=rep;
    function action() {
    sendRequete('tryscript.html');
    function yiu(){
    alert('rooooooo');
    </script>
    </head>
    <body style="margin:0px;padding:0px;font-family:'Trebuchet MS';background:gray;" >
    <div>
    <input type="button" value="click" onclick="action();" />
    <div id="back2">
    <!--Contents loaded with ajax-->
    <input type="button" value="click2" onclick="yiu();" />
    <!---->
    </div>
    </div>
    </body>
    </html>
    Thank you for your assistants and forgiveness for my English

    Thank you for your answer,
    I'll go to read content's  links, once this made, i'll come back to explain my new situation.
    Cordially, thank you one more time.

  • Adobe air distribution problem. (AJax / html)

    Hi guys,
    I have written a sample application in javascript (ajax) and xhtml and successfully published with adobe air. The system works fine but my question is when i distribute the application (.air) I had to include all my javascript , images, xhtml. I dont have any problem in sending the images with .air package but sending javascript files is imposible that is be because, since im using ajax to show all the details I have to use full URL for all my ajax calls.
    so someone who knows about abobe air can use those same URL`s and create their own air application and steal my details from my server. (adobe air allow cross scripting)
    As a solution I have seen many applications (ex: ebay desktop) uses flash logins and check the login using flash and redirect user to a seperate page if the login is successful. so in this case i only need to package my .swf file since redirection will handdle from the flash end.
    Im not a flash developer so I wont be able to create the whole application using flash. thats why im looking for a javascript / html solution to overcome this problem.
    so my questions are,
    1. Is there any way i can publish my .air application without packaging js files?
    2. Is there is a posibility which i can use a flash login and if the login success open up a new window with the actual application and close the login window? and while logging off viseversa
    I hope you guys undestand my questions and any help highly appreciate it.
    Thanks in advanced,
    Best regards,
    niroshan

    There isn't any way to distribute an HTML/JS AIR application without the HTML/JavaScript source files. Because JavaScript is a run-time interpreted language, the HTML and JavaScript code has to be available at run time. The obvious downside to this is that the source code of your application is available in plain text on the users' hard drive.
    If your main concern is protecting data stored on the server from malicious users, the username/password strategy is probably a good one (and you wouldn't need to implement in using Flash at all -- you could do the same thing in HTML/JS.). What you need to do is:
    Set up your web server so that the user has to be authenticated with the web server in order to get any data or perform any of the calls (from ajax or anywhere else).
    When your app first starts or at some point, have a login form where the user enters their username/password for your serve. When you make the ajax calls to the server pass the username/password along (or use a session cookie, or some other similar technique for maintaining authentication).
    That way, even if an attacker knows the url of your server calls, they can't actually use them unless they have an account with you.
    From a practical standpoint, you should protect your server by requiring authentication in any case. Otherwise your only security defense is the fact that an attacker doesn't know your exact url. But there are ways to learn urls (for example, by monitoring network traffic) that make it so it isn't too hard for someone to discover the urls even without your app's source code.

  • Javascript in Adobe air

    Hi I have an online order form page whcih uses javascript/ ajax to auto look up the database, the page works fine as a webpage, what i am trying to do is to add the page to Adobe air so that it can be used as a standalone page on a desktop to allow customers to order products using our catalogue and without having to go to the website.
    However whilst the page seems to display fine it doesn't show the javascript/ajax auto look up suggestion list, that appears when you start typing and wondered if there was anyway i could get the list to display or if Adobe air will allow me to load a page with Javascript and ajax wihtin it.
    Thanks
    Stan

    Hi Stan,
    I played a little with the page you gave me and I found the problem. When performing a lookup the server returns HTML content that contains JavaScript. As per the security model in the application sandbox, AIR will not allow you to add that HTML. Thus, the suggestions will not display at all.
    You can find more about AIR development with HTML/JavaScript at http://help.adobe.com/en_US/air/html/dev/index.html . Specifically the Security chapter ( http://help.adobe.com/en_US/air/html/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d23.html ) might be of interest to you.
    As for work-arounds to your problem, I can see two:
    Run the page in an iframe that's in the remote sandbox. Note however that in this case you will not be able to use AIR specific APIs in the page
    Modify the server code to return the suggestions in some other format (e.g. XML) and parse the response on the client. Then programatically add the needed HTML elements and event handlers. Note that if you want to add JavaScript, you still won't be able to use eval, or inline handlers (as is the case with code currently returned from the server, like<li onClick="fill1('  ANTSTOP  Pk 2');fill2('  Ant Stop Bait Station, HSE 7294(Registered for ama'); ..."></li> ) The code in red is the one that's not allowed by the security policy.
    Feel free to ask if you have any other questions.
    Mihai

  • Will Adobe AIR apps work on iOS (Javascript/HTML)?

    Hello,
    I haven't been able to find any definitive answer on whether Adobe AIR apps using Javascript and HTML can work on iOS.
    Anyone know for sure?
    And if so, what happens with the APIs available through these swfs that we currently include:
    networkInfoWrapper.swf
    servicemonitor.swf
    applicationupdater_ui.swf
    Many thanks
    Stephen

    The answer is no. Apps developed for AIR using HTML and JavaScript are not supported on iOS or other mobile platforms. The mobile platforms do include a StageWebView component that can be used to load and display HTML and JavaScript. However, it is entirely different than the HTMLLoader control used on the desktop platforms (for HTML-based AIR apps). You cannot, for example, call any AIR/Flash APIs from JavaScript running in a StageWebView. In general, very little communication is possible between your ActionScript application code and the JavaScript code running in the StageWebView object.

  • Problem with adobe air ajax PUT request

    Hi,
    Sorry for my english.
    I would like to send a XML document to a server with AJAX
    XmlHttpRequest Object.
    I use the PUT method.
    Adobe Air sends the PUT request without the contents and set
    the contents-length header to 0.
    If I replace the PUT method by a POST method Adobe Air sends
    the request with the document, but the service on my server do not
    allow POST requests.
    If I open the same page with Firefox, IE and Safari, all
    works fine.
    I do not understand why Adobe Air is not able to send my xml
    document with a PUT request but he can if I replace the method PUT
    by a POST ?!?
    I cannot change the implementation of the remote service so I
    need to send a PUT request.
    I see an old topic here (
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=641&threadid=1309642#47 47452)
    speaking about my problem but I do not the right to add a message
    to the thread.
    Somebody can help me, please ?

    tzeng,
    The web server is a tomcat.
    Maybe the server is not configured to manage POST request or
    the service does not support the POST request (only PUT and GET).
    The AJAX code :
    quote:
    var xhr = new XMLHttpRequest();
    if (window.XMLHttpRequest) {
    try {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
    } catch (e) {}
    // With Adobe Air, the following code Adobe AIR sends the PUT
    request without the document (in the data object).
    // if I replace "PUT" by "POST" all works fine
    xhr.open("PUT", url, true);
    xhr.onreadystatechange = function () {
    // my code [....]
    xhr.send(data);
    Thanks.

  • Adobe AIR for HTML/JS custom Javascript Scrollbars

    Hi,
    I would like to know if it is possible to have custom Javascript scrollbars in an Adobe AIR application.
    I have tried many jQuery plugins but nothing can style the scrollbars.
    I can only style them via CSS.
    Adobe AIR supports javascript scrollbars for HTML / iFrames?

    Filed feature request on bugbase. Vote it up if you agree!

  • 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()

  • What HTML and JavaScript engine is used within Adobe AIR on the desktop?

    HTML and JavaScript within Adobe AIR are handled by the WebKit HTML/JavaScript engine.

    I've made a little headway with this. Within your initHandler just make a call to login:
    FacebookMobile.login(loginCallback, this.stage, [], webview);
    webview is a StageWebView instance with the viewPort defined. If I left it null, or didn't set the viewPort nothing happens...
    var webview:StageWebView = new StageWebView();
    webview.viewPort = new Rectangle(0,0,400,400);
    I'm now getting a login screen.

Maybe you are looking for

  • IPhoto transfer to external hard drive to Macbook Pro

    Hello, I just had my hard drive replaced in my Macbook Pro, but had backed up all of my pictures in iPhoto to my iomega external hard drive before the Apple Store wiped my computer clean. I am trying to enter my time machine to retrieve the photos, b

  • Questions about movie clips

    I want to play a movie clip in a separate file. First, I use loadMovieNum("[url]",1); which works, but the movie is ends with being too large, even though I adjusted the movie clip's size and exported it. When I load the movie, is there something I c

  • Flash movie display issues in IE

    Hi Everyone! This message is a cross-post and I apologize, but there seems to be more traffic in this forum and I really could use some input on my question. Here goes: I'm new to this forum, but have a little experience with Flash. I'm building a si

  • Would a Woolamaloo listserv be useful?

    HI guys, I am thinking that a Woolamaloo listserv mght be useful to you all and Apple might appreciate it as well. After all, it's only fair to Apple to keep this forum reasonably clean of any issues you might like to see addressed in Woolamaloo. Tha

  • Smartforms on production order

    i am creating a smartforms for production order(co01). in that there is a column 'status'. in aufk table for a objnr field i have the following status...stat in jest table & txt04 in tj02t STAT  lang  TXT04 I0001   E     CRTD I0002   E     REL I0016