![]() Wordpress responds with XML file containing last ten comments from my blog GetRSS function creates XMLHTTPRequest object and sends HTTP GET request to a href=" ">. That’s how the javascript in this web-app works: ![]() As our gadget is a desktop program written in javascript and since Javascript blocks UI when being executed, setInterval/setTimeout is the only one way to set the “main loop”. Meaning that every five minutes getRSS function is called. If you take a look at window.onload js code, you’ll see the following: tInterval( function(), 5*60*1000) I created a simple page with a pretty straight-forward javascript. So gadget building comes down to building a client-side web-app and packing it. So I use the same approach as if I had to parse my blog comments on a website – a simple HTML, a bit of CSS and a bit of AJAX. So Windows 7 Desktop Gadget with my blog comments feed would perfectly suit my needs.Īlthough this might not sound as a killer app to you, but it does its job and also perfectly shows how simple it is to build a gadget.įirst of all, as I’ve already said, Windows 7 Gadget is nothing more than just a HTML page with Javascript and CSS. And I don’t particularly fancy logging to my blog every three-four hours to check for newĬomments. I don’t like first option because I’m subscribed to more than a hundred feeds in my Outlook so I only read them at the weekends when I’ve got enough free time. There’re usually two ways to check for new comments on your blog – either by subscribing to comments RSS feed or by going to admin web-interface of the blog and checking for comments there. One of the things that was always bothering me was checking comments to my blog entries. Update: It looks like Windows Mobile 6.5 will have support for similar gadgetsįunctionality! Exploring Windows Desktop Gadgetsįirst of all, let’s get our hands dirty and create a simple gadget. I use Twitter, weather (standard), network traffic and cpu meter gadgets.Īwesome technology! I’m planning to build couple of my own gadgets and will definitely prepare a blog post on this :) Gadgets are especially useful when you have a widescreen monitor or two monitors configuration so that you’ve got much horizontal space, but even if you’ve got a normal monitor as gadgets can be freely positioned, you will find them useful. Here’s a screenshot how gadgets look like on my desktop: In Windows 7 you can put your gadgets wherever you want them to be. The gadgets concept was introduced In Windows Vista – but gadgets had to be positioned inside a special sidebar area – which is not very flexible. IE8 core is used to run them, so you get full support for CSS2.1, great level of javascript and other IE8 goodness. If you double-click on this archive, gadget will get installed and can be moved to any place of your desktop. ![]() Both technologies combined both to create Microsoft Desktop Gadgets - small standalone client-side web applications that run as dockable widgets on your desktop – pure HTML,CSS and JS packed with manifest file in an archive. So Microsoft had two nice technologies that weren’t actively used – Active Desktop as a way to integrate web-application with desktop and HTA as a core for writing standalone client-side web applications. While any web-development IDEs could be used, there even was a special IDE for building HTAs – HTAEDIT. If you were using classic ASP on the server, you could switch to writing HTAs with zero effort – language and all the objects would be the same. ![]() – basically everything that was supported in WSH and Script Runtime. You could access all ActiveX objects that your system provided – Scripting FileSystemObject, UserAccounts, WMI etc. You had to put your scripts (VBScript or JScript) and styles in a single HTML file, add a special description and rename the file extension to. As with many other Microsoft inventions, it was way too ahead of time.Īnother technology that played a role in inventing desktop gadgets is HTA – short HTML applications that run in a standalone way. So web-widgets-like functionality was around almost twelve years ago. Microsoft even had a gallery of Active Desktop widgets. You could set an HTML page (plus JS, of course) as your desktop background and it would be run in IE. The approach of putting web-application right on a desktop was invented by Microsoft in 1994-95 (in Windows Nashville which was intended to be released in 1996) and was a part of Windows Desktop Update for Windows 95 and a core of Windows 98 Active Desktop. I’ve been playing with Windows 7 Desktop Gadget technology and I must tell you – I just love it! And I’ll tell you why :) History
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |