Skip to content

Tag archive for: javascript

DroidScript Fun @ GDG

This week’s Mercer/Macon Google Developer Group was hosted at SparkMacon, and my friend and coworker, Michael Rosario, was presenting on DroidScripts. This is Michael. DroidScripts lets you write android apps with JavaScript. Ya know, if you’re really into JavaScript. But it really does seems to be a good alternative to regular Java/Android, if you’re looking to do some quick prototyping. There’s no manifest file to futz around with and hardly any setup before coding. (Bee tee dubs, I called the “manifest” file the “manifesto” file for the longest time. And nobody corrected me, seriously? lol.) The IDE you develop in is browser based,…

Continue reading DroidScript Fun @ GDG

Implementing a heartbeat pattern with AJAX and ASP.NET

Problem So I’m working on a web application, where I needed a way to detect when a user has closed their browser. Javascript’s onunload event looked promising. However, it is unable to differentiate between a browser closing, a postback, and a page refresh. After talking (i.e. complaining) to Kyle, he suggested this Stack Overflow solution on implementing a heartbeat pattern, letting the server know when the client was no longer active. Heartbeat Pattern In the heartbeat pattern (where you can read more about here), the client will send a signal to the server indicating that it’s still alive every 10 minutes (or…

Continue reading Implementing a heartbeat pattern with AJAX and ASP.NET