Tag Archives: WinJS

WinJS Tricks Series: Creating message boxes

Maybe you already heard, that you can create classic “rich client” applications in JavaScript for Windows 8. Whether it’s practical to choose JavaScript instead of C#, that’s another question, but it’s a fact, that there are problems which can be solved easier in JavaScript.

It’s a fact too, that in the beginning you won’t be productive when you create your Metro style applications in JavaScript, because the WinJS documentation is quite minimal. So I decided to start the WinJS Tricks Series to show you the solutions for problems that sooner or later you will face with when you are coding on WinJS. When you see the solution, it’s quite straightforward and logical, but without it, well….

So let’s take the simple task of popping up message boxes in WinJS! To save you some time, I tell you, that the classic alert doesn’t work. And there is no MessageBox class in WinJS. So what?

Let me introduce you to the world of message dialogs:

720p, full screen view recommended

If you are interested, please Like, so I will know. Thanks!


Technorati-címkék: ,,,,