I'm new to developing Metro apps, but I've had experience with javascript and some of its libs like Backbone, _, $, etc. Anyhow, I've simply imported some of my js code into my new metro app and noticed that some js functions don't transfer over. The first one I've noticed was alert. Eventually through searching, I found out that alert could be represented as
window.alert = function (msg) {
var dialog = new Windows.UI.Popups.MessageDialog(msg, "Alert");
dialog.showAsync();
}
Another function that was weird was document.write, went I "alerted" it, it was defined, however, when I used it, my app crashed.
Anyhow, I was wondering if there is any documentation containing js functions like this that don't really map exactly to metro apps and maybe their metro equivalent, or even maybe a js lib that helps deal with this?
Also, if anyone could figure out what went wrong with my document.write() call (or maybe it worked for you?), that would be awesome, too!
Thanks!