Thursday, July 19th, 2007
Salesforce.com on Air
Dave Johnson of Nitobi wrote a nice desktop application for salesforce.com. The application is offline enabled by Air using Ajax as the actual app code itself (no Flash). Dave has written up a detailed walk through to show off how this was built, and shows (quoting his 'l33+):
- Custom chrome to make things look hawt
- Drag and drop from the desktop for vcard integration
- File system integration for taking things offline
To get a feel for the file system integration:
-
-
nitobi.data.IO.readXml = function(filename) {
-
var file = air.File.applicationStorageDirectory.resolve(filename);
-
var stream = new air.FileStream();
-
stream.open(file, air.FileMode.READ);
-
var str = stream.readMultiByte(file.size, air.File.systemCharset);
-
stream.close();
-
return nitobi.xml.createXmlDoc(str);
-
}
-
-
nitobi.data.IO.writeXml = function(xmlDoc, filename) {
-
if (typeof xmlDoc != 'string') xmlDoc = nitobi.xml.serialize(xmlDoc);
-
var file = air.File.applicationStorageDirectory.resolve(filename);
-
var stream = new air.FileStream();
-
stream.open(file, air.FileMode.WRITE);
-
var str = stream.writeMultiByte(xmlDoc, air.File.systemCharset);
-
stream.close();
-
}
-













Way to go Ext!
Actually, thats not EXT. It’s Nitobi’s framework skinned to sortof look like Vista-ish.
Yeah, I thought it looked a bit off to the Ext look.
@Everyone
My friend just wrote a similar looking kind of app using Airl – so I think it’s just a l&f the API tends to naturally guide people towards. He’s kind of crap at graphics and his looked even sexier than this one. (maybe because it was black ;) )
‘hawt’? That looks fricking awful.
Whether or not it looks good, no one should ever describe anything they created as “hawt”. Ever.
Most CRM vendors offer a web services APIs that do the same.