Are all JavaScript features available in Windows 8 Metro apps?

When designing Metro apps for Windows 8 with JavaScript, are all features available such as full AJAX support? And what about CSS?

What is supported, and what is not? I haven't been able to find a comprehensive command-reference list yet.

Upvotes: 0

Views: 461

Answers (3)

c69
c69

Reputation: 21497

You are asking it wrong ;) Windows 8 WinJS API has much more features than in-browser JavaScript in Windows 8 / IE10.

Update: thanx to Jeremy Poster, for pointing out, there are some security limitation in Windows Store Apps (because it has more privileges, compared to browser). Most visible are: mandatory utf8, absence of window.alert and its friends, url links open in browser by default, .js file caching, and filtration for .innerHTML and company. See all differences.

Upvotes: 3

kapsi
kapsi

Reputation: 907

Since Javascript in Metro runs on IE10 browser, you can check http://caniuse.com/ for information about which browser supports what. In addition, there are additional APIS you can use from "WinRT".

Upvotes: 1

saml
saml

Reputation: 6802

According to the JavaScript Getting Started page, you can create apps with HTML (so I assume full DOM access), as well as network requests using XMLHttpRequest.

Check out the blog reader demo app.

Upvotes: 2

Related Questions