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: ,,,,

4 thoughts on “WinJS Tricks Series: Creating message boxes

  1. Pingback: WinJS Tricks Series: Custom MessageDialog buttons « Codes from the field

  2. Pingback: WOWZAPP preparation materials « Codes from the field

  3. Pingback: WinJS Tricks: Access is denied exception with multiple MessageDialogs « Codes from the field

  4. Cristian

    thanks in advance!!! i need it that, i dont know how to make that msgbox, i try and try with alert(); but dont work🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s