Warning: Undefined array key "oxygen-cache-1409" in /var/www/wordpress_jb/wp-content/plugins/jetpack/class.jetpack.php on line 5759

Warning: Undefined array key "oxygen-cache-1414" in /var/www/wordpress_jb/wp-content/plugins/jetpack/class.jetpack.php on line 5759

Warning: Undefined array key "oxygen-universal-styles" in /var/www/wordpress_jb/wp-content/plugins/jetpack/class.jetpack.php on line 5759

Vista Gadget Development & JavaScript

Posted on September 27, 2007

One of the first things that I noticed when learning how to develop sidebar gadgets was that the code behind them was a combination of HTML and JavaScript. The biggest problem is that it was JavaScript, something that I am not well versed in. I looked through several samples and tried some different samples and pretty much have learned the basics of what I need to know, but some of the commands still require me to reference the web or Google certain topics.

I developed a gadget to display specific weather data from my weather station and leveraged what I learned about JavaScript to use XMLHTTP. It worked fine unto a couple days ago when the gadget stopped responding and couldn't connect to the datasource even though I can do some from a browser. From what I can tell, I must be hitting some sort of connection limit, or I have an object that is not being nulled out. I did change my code to use synchronous processing on the XMLHTTP object, and that seemed to work, but the gadget will sometimes lock up the whole sidebar. Now, that is a nice bug!

So ... not a big fan of JavaScript, but making it work. I do like the error handling against what is available using VBScript. Needless to say, it would be nice if gadgets supported C# or VB.NET natively instead of requiring some type of COM access.

About JB

I've been a technologist for over 20 years, getting my start in IT with a large Fortune 100 international retailer in the 1990s. I love to talk about new technology, mobile devices, software development, photography, and the weather.  The opinions expressed on this blog are my own.

Follow me

Copyright © Justin Braun.  All rights reserved.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram