LA.NET [EN]

January, 2012Archive

Jan 27

If you’ve been doing Web development from some time now and you’ve looked at several of the Windows 8 samples, you’re probably wondering which event you should handle if you’re interested in doing work as soon as you can. The first option you have is to handle the DOMContentLoaded event. As you probably know, this […]

Read the rest of this entry »

Jan 20

Windows 8 adventures: error handling and the async pattern

Posted in Windows8       Comments Off on Windows 8 adventures: error handling and the async pattern

In the previous post, we’ve started looking at the async pattern in Windows 8 Metro apps developed with JavaScript. By now, you know that all async operations are wrapped in Promise objects which you can use to be notified when that operation has ended (besides other interesting things!). We’ve also seen how we can “improve” […]

Read the rest of this entry »

Jan 19

Windows 8 adventures: the async pattern in JavaScript

Posted in Windows8       Comments Off on Windows 8 adventures: the async pattern in JavaScript

After a small detour into ASP.NET MVC, I’m back into my “Windows 8 application development study”. One of the things you’ll notice when writing Windows 8 Metro applications is that most APIs don’t expose any synchronous methods. If an operation takes more than 15ms to be executed, then you’ll be getting an asynchronous call. And […]

Read the rest of this entry »

Jan 12

Windows 8 adventures: getting to know context menus

Posted in Windows8       Comments Off on Windows 8 adventures: getting to know context menus

In the previous post, I’ve talked about the new Flyout control. Today, we’ll take a quick look at the context menu. In practice, you’ll show a context menu when you need to show a menu which gives the user immediate access to actions on text or UI objects. By default, there are predefined context menus […]

Read the rest of this entry »

Jan 11

According to the docs, the Flyout control allows us to add lightweight popups which relate to what the user is currently doing. Creating a flyout is a simple operation which evolves a couple of steps: create the HTML snippet shown by the flyout; create the Flyout control and associate it with the HTML snippet created […]

Read the rest of this entry »

Jan 09

Windows 8 adventures: playing with the Tooltip control

Posted in Windows8       Comments Off on Windows 8 adventures: playing with the Tooltip control

The Tooltip control is one of the new controls introduced by WinRT JavaScript API. After looking at the docs, I’ve decided to see how I could use it in a real world scenario. Since it’s a Windows 8 control, I knew that I could instantiate it by applying the win-data-control attribute to a div (and, […]

Read the rest of this entry »

Jan 05

Windows 8 adventures: getting external data from a local server might not be as easy as you expect…

Posted in Windows8       Comments Off on Windows 8 adventures: getting external data from a local server might not be as easy as you expect…

After a couple of days playing with the Windows 8 controls (more about them in future post), I’ve decided that it was time to see how to get remote data through the WinJS.xhr helper. To make things really simple, I’ve decided to create an HTML page on the server which would be obtained through WinJS.xhr […]

Read the rest of this entry »

Jan 04

Windows 8 Adventures: Oh my god, it’s so easy to debug JavaScript apps!

Posted in Windows8       Comments Off on Windows 8 Adventures: Oh my god, it’s so easy to debug JavaScript apps!

After installing the Windows 8 Developer Preview With Developer Tools, I’ve finally managed to debug my JavaScript applications. Hurray and hurrah!!! And I must confess that the experience is really good! Even though I’ve been using Windows 8 for some time now, the truth is that the Widows 8 Developer Preview version I’ve decided to […]

Read the rest of this entry »

Jan 03

Windows 8 Adventures: setting properties from the HTML

Posted in Windows8       Comments Off on Windows 8 Adventures: setting properties from the HTML

Yesterday I’ve started playing with the Windows 8 developer bits and I’ve decided to follow the JavaScript online docs. Windows 8 introduces lots of new things, but I’ve decided to start simple. It didn’t take long until I got into trouble though…One of the first controls that got me into trouble was the TimePicker control. […]

Read the rest of this entry »