Larger screenshot on Flickr.
Hey, everyone. I do have a programming related post today.
I have been coding in JavaScript, XML/HTML and CSS to create the above simple Digg API AIR application, which retrieves the top (e.g. newest) story for each category on Digg.
I have as good as finished it and will be releasing the AIR installation package (*.air) and source code (*.zip) for anyone who is interested in the AIR platform to look at.
Although I could have done an XmlHttp request without any additional framework, I did use the Prototype JavaScript framework for this project.
Here is a quick rundown of the files used in my application and their purpose:
DiggAPI.xml - This is the file which specifies the name, copyright information and file to use for content, etc. An XML file such as this is a standard requirement in any AIR application.
DiggAPI.html - The application content. This contains all of the HTML code for my application and calls to the neccessary JavaScript functions in my external *.js files.
sampleCert.pfx - The certificate used to sign the AIR application. All AIR applications must be signed to be built, even if not by a recognised body such as VeriSign.
script/AIRAliases.js - JavaScript file containing code used by the AIR runtime. Referencing this file provides convenient aliases for use in your code. Included with AIR SDK.
script/prototype.js - JavaScript file containing code for the Prototype framework. I used the cross-browser new Ajax.request provided by Prototype in my application.
script/DiggAPI.js - JavaScript file containing my code used by the application.
style/DiggAPI.css - Style sheet used to format my links and text colours, etc in my application.
style/digg.png - Digg guy logo image used in my application.
Check back soon for included AIR package and source code. Happy coding. :)