1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    21
    Vote Rating
    0
    prologic is on a distinguished road

      0  

    Default Aptana + AIR + ExtJS-2.0.2

    Aptana + AIR + ExtJS-2.0.2


    Hi all,

    I'm trying to get Jack's sample "Simple Tasks" example working with Adobe AIR in Aptana Studio and am not having much luck. I can run (clicking on the Run button) the application in Firefox okay, but not in Adobe AIR (click on the Adobe AIR icons for Tasks).

    When run as an Adobe AIR app the following happens:
    1. A new window opens
    2. The content of the window is replaced with http://gears.google.com/
    3. This states that my browser (WebKit ?) is not compatible

    Presumably this is caused by the inclusion of gears.js (from Tasks.html). However if this is commented out or removed, nothing works. A blank window named "Simple Tasks" is created with nothing rendered.

    Furthermore, I cannot debug this in Aptana as it seems debugging is not supported for Adobe AIR apps (despite the AIRIntrosepctor.js).

    This is what I've done (following Jack's suggestion):
    1. Installed Aptana Jaxer (latest version)
    2. Installed Aptana Studio Pro (latest version / trial)
    3. Installed Google Gears (latest version)
    4. Installed Adobe AIR Runtime and SDK (latest versions)
    5. Created a new Aptana Adobe AIR Project called Tasks using default settings (and including Ext-2.0.2 support)
    6. Saved this project
    7. Copied and overwrote the contents of examples/tasks/* from the Ext-2.0.2 source zip into the Tasks project directory
    8. Modifed the src= attributes and fixed the locations of ext javascript and css references in Tasks.html

    Can anyone reproduce this or offer any helpful suggestions ?

    cheers
    James

  2. #2
    Ext User
    Join Date
    Apr 2007
    Location
    London, UK
    Posts
    50
    Vote Rating
    0
    Lucian is on a distinguished road

      0  

    Default Maybe you should modify main.html

    Maybe you should modify main.html


    Make sure that in the application.xml the <content> tag should contain main.html or whatever the html file you wish to be loaded first.
    But, if you say you overwrote the files from tasks example, I think you should modify the main.html file, and not task.html, for setting up correctly the js/css files.

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Posts
    21
    Vote Rating
    0
    prologic is on a distinguished road

      0  

    Default


    I believe I have done most things correctly:

    Here is a snippet of my application.xml:

    Code:
    	<!-- Settings for the application's initial window. Required. -->
    	<initialWindow>
    		<!-- The main HTML file of the application. Required. -->
    		<content>Tasks.html</content>
    Here is the bit in Tasks.html that should be loading up the js/css but doesn't appear to correctly:

    Code:
    <html>
    	<head>
    		<title>Simple Tasks</title>
    		
    		<script type="text/javascript" src="AIRAliases.js"></script>
    
    	    <link rel="stylesheet" type="text/css" href="lib/ext/resources/css/ext-all.css" />
    	    <script type="text/javascript" src="lib/ext/adapter/ext/ext-base.js"></script>
    	    <script type="text/javascript" src="lib/ext/ext-all.js"></script>
    		
    		<script type="text/javascript" src="db/ext-db.js"></script>
    		<!-- <script type="text/javascript" src="gears.js"></script> -->
    		<script type="text/javascript" src="db/ext-air-db.js"></script>
    		<script type="text/javascript" src="db/ext-gears-db.js"></script>
    	    
    		<script type="text/javascript" src="classes.js"></script>
        	<script type="text/javascript" src="tasks.js"></script>
    		
        	<link rel="stylesheet" type="text/css" href="tasks.css" />
    </head>
    <body>
    cheers
    James

  4. #4
    Ext User
    Join Date
    Apr 2007
    Location
    London, UK
    Posts
    50
    Vote Rating
    0
    Lucian is on a distinguished road

      0  

    Default AIR + Google Gears != love

    AIR + Google Gears != love


    Hi James!...

    As far as I know at this right moment, there is no support for Google Gears in AIR, but Adobe is trying to align the APIs so that it's easy to use code back and forth.

    You see, Gears and AIR are very different, since AIR is more like a tool for building desktop applications using Flash and Ajax, and Gears is nothing more than a browser plugin, with its own API.

    So, in order to use AIR and Google Gears into the same application, the APIs of those two should be aligned. You could wait for AIR' s team to accomplish this, or starting to write your own, just like Dion Almaer suggests.

    Also, you could take a look at gears-dblib and Aptana's Jaxer implementation .

    Hope it helps...

  5. #5
    Ext User
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    75
    Vote Rating
    0
    flatburger is on a distinguished road

      0  

    Default Code

    Code


    Can we have the full code, so we just import, run, and done.

    F
    Frans Thamura
    Meruvian Foundation
    Jakarta
    indonesia

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi