By Dion Almaer, Google Developer Programs We have so much respect for the Zoho team here at Google. They produce great software, and they do it regularly! Their latest accomplishment has been getting their email product, Zoho Mail, working offline.Bra…
By Steve Lamm, Member of Technical StaffLet’s say you figured out a wicked-cool way to speed up how quickly your website loads. You know with great certainty that the most popular web page will load much, much faster. Then, you remember that the page a…
By Dion Almaer, Google Developer ProgramsIt has been an exciting couple of days. Google Chrome launched along with a new blog for Chromium the underlying open source project. Whenever you see an internal project go live to the world, and see the sourc…
By Dion Almaer, Google Developer ProgramsCode Review is produced in a variety of formats, from text to audio (iTunes) and video.The last several days have been exciting. We are seeing great new technology that can enable us to do new things, and have o…
By Elizabeth Yin, Google Developer ProgramsWe are excited to open registration for four more Google Developer Days in October in India, Italy, the Czech Republic, and Russia.October 18th — Bangalore, IndiaOctober 21st — Milan, ItalyOctober 24th — Pr…
By Dion Almaer, Google Developer ProgramsMark Lucovsky of the Google AJAX APIs team has written up a detailed article on how the 2008 U.S. Election site was created and implemented.A myriad of the AJAX APIs are used here. The election news comes from:A…
By Dion Almaer, Google Developer ProgramsThis week has seen two new series to cover Open Web technology. One of the messages from Google I/O was explaining how Google believes in, and is frankly betting on the Web as its platform. You should expect to …
By Dion Almaer, Google Developer ProgramsHow do you like your Code Review? Choose from text to audio (iTunes) and video.We have had a varied couple of weeks, so I decided to turn on the camera, even though I am in Eldora, Colorado, up in the mountains….
By Dion Almaer, Google Developer ProgramsUsing iTunes? Michael Marcus and Rui Ma, two recent graduates from a masters program at NYU, join us to discuss Gears on Rails, their open source framework that makes it easier than ever to take a Rails code-bas…
By Hiroyuki Komatsu, Google Chart API teamYou can easily render 2D bar codes, known as QR Codes, with the Google Chart API, along with pie charts and bar graphs. If you haven’t seen a QR Code before, you are looking at one on the right hand side (To se…
By Dion Almaer, Google Developer ProgramsWe are trying an experiment, putting up Code Review in a variety of formats, from text to audio (iTunes) and video.After a great trip to Brazil and Mexico for the Google Developer Day events (Europe in September…
By Dion Almaer, Google Developer ProgramsOne of the core pieces of infrastructure at Google is something called Protocol Buffers. We are really pleased to be open sourcing the system, but what are these buffers?Protocol buffers are a flexible, efficien…
Posted by Dion Almaer, Gears Team
When a lot of developers think about Flex, they often tie it to Flash and AIR, but you can of course integrate Flex applications with many other front-end services.
Mrinal Wadhwa has seen value in building Flex applications, and also likes functionality available in Gears.
He wrote up an article on enhancing Flex applications with Gears which had him create a sample application the uses the Desktop API in Gears.
It is interesting to take a look at the source to see how Flex applications tie back to plain old JavaScript.
For example, the following shows you how you put JavaScript into your Flex application, and then call back to the Flex code via thisMovie(APP_NAME).methodToCall
:
// tells the swf if gears is installed
function isGearsInstalled() {
if (window.google && google.gears) { //gears is installed
thisMovie("FlexGears").testForGears(true);
return;
}
//gears is not installed
thisMovie("FlexGears").testForGears(false);
}
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
}
}
// ....
Thanks to Mrinal Wadhwa for taking the time to try this all out. We enjoy seeing how people take Gears into many corners of the Web!
Also, you may not have seen QuickFix, an example application that shows how you can use Flex to talk to Google App Engine. The example is created by Dick Wall from App Engine, and James Ward from Adobe.
Posted by Dion Almaer, Gears TeamWhen a lot of developers think about Flex, they often tie it to Flash and AIR, but you can of course integrate Flex applications with many other front-end services.Mrinal Wadhwa has seen value in building Flex applicati…
By Dion Almaer, Google Developer ProgramsWe are trying an experiment, putting up Code Review in a variety of formats, from text to audio (iTunes) and video.You have probably heard by now, but all of the slides and video of the presentations at Google I…