Official ObjectGraph Blog

Tuesday, August 07, 2007

ObjectGraph AJAX Dictionary AIR version

I recently start learning Adobe AIR . AIR is a platform that allows you to run your web application on your desktop too. It seems there are two major ways to implement AIR: Flex or JavaScript. I downloaded a free online book from here, and I used Aptana for the IDE, but you can basically build AIR application with your favorite text editor & command-line.

After my Hello-World experience, I tried to port our online AJAX dictionary. I could translate this web application in 25 minutes. In terms of coding, only one part was changed, which is url for XMLHttpRequest method. It was relative path to send request, but I changed this to absolute url since it will send requests from your desktop. This was easy, and rest of changes are window width, removing links & unnecessary scripts.

Click here to download the .air application. Please install the runtime from here.


air_install.png
Installing Application

air_dict.png
Screen Shot

Additional Note:

In order to distribute AIR application, you need following MIME type in your server for .air extention.

application/vnd.adobe.air-application-installer-package+zip

Japanese characters are OK in AIR, but the font lost the sharpness. Maybe it's default font or rendering engine of its browser.

Labels:


posted by Kiichi Takeuchi at 5:29 PM

2 Comments:

  • "It was relative path to send request, but I changed this to absolute url since it will send requests from your desktop"

    So this means the browser security is disabled? Could this be because its an application?

    By Anonymous Anonymous, at 7:33 AM  

  • Yes, usually, on browser, cross-domain http request is prohibited javascript (or flash) send http request from your desktop to other website. I just quickly read through the documentation, it even has some sockets stuff.

    By Blogger Kiichi Takeuchi, at 9:26 AM  

Post a Comment

<< Home