winjs

How do I create a pre-build step for a javascript metro app in VS11?

只谈情不闲聊 提交于 2019-11-30 16:11:18
问题 I want to run some custom batch code just before every build. In a VS<11/C# app I could set the pre-build events in the project settings. I can't find similar settings in a javascript metro VS11 solution. Anyone know where it is, or if the option is gone (!) what kind of workaround I can do in its place? 回答1: You can use the BeforeBuild target in the Visual Studio .jsproj file to accomplish this: <Target Name="BeforeBuild"></Target> <Target Name="AfterBuild"></Target> To get here: Right-click

WinJs in the browser?

不想你离开。 提交于 2019-11-30 12:58:43
问题 After playing a bit with the new Visual Studio 11 preview, I think the most interesting question is how can I make my new javascript based app run also in the browser with minimal changes? is that possible? I suppose the idea of supporting javascript is for better cross-platform apps, am I right? I understand some of the winJs code calls the WinRT, but can we use some of the WinJS code on web-based apps too? 回答1: It seems like things have changed. WinJS has become available on all platforms..

How do you get Angular.js to work in a Windows 8 store app?

末鹿安然 提交于 2019-11-30 11:36:14
The app runs but Angular data objects are not recognized. Here is the JavaScript error I am getting: Exception was thrown at line 1059, column 11 in ms-appx://28934b41-4dd2-4414-b9a9- a73c11c1b743/js/angular.js 0x800a139e - JavaScript runtime error: No module: ngLocale Exception was thrown at line 4473, column 9 in ms-appx://28934b41-4dd2-4414-b9a9- a73c11c1b743/js/angular.js 0x800a139e - JavaScript runtime error: HierarchyRequestError The program '[5112] WWAHost.exe' has exited with code 1 (0x1). Here is the function around line 1059 in angular.js: return ensure(modules, name, function() { if

WinJs in the browser?

匆匆过客 提交于 2019-11-30 04:27:42
After playing a bit with the new Visual Studio 11 preview, I think the most interesting question is how can I make my new javascript based app run also in the browser with minimal changes? is that possible? I suppose the idea of supporting javascript is for better cross-platform apps, am I right? I understand some of the winJs code calls the WinRT, but can we use some of the WinJS code on web-based apps too? It seems like things have changed. WinJS has become available on all platforms... You can try it in the browser here: try.buildwinjs.com WinJS is actually being open source now: blog ,

WinJS OData JSON

前提是你 提交于 2019-11-29 18:01:57
try to send data to my database by web service an get this error: Primitive values of type 'Edm.Decimal' and 'Edm.Int64' must be quoted in the payload. Make sure the value is quoted here is my code: var newEntry = { datum: entryDate, monat: parseFloat(entryMonth), taetigkeit: document.getElementById("addWork").value, total: parseFloat(document.getElementById("addTotal").value), totalV: parseFloat(document.getElementById("addTotalV").value), in_auswertung: 0, teil_projekt_id: parseFloat(document.getElementById("addSubProject").value), projekt_id: parseFloat(document.getElementById("addProject")

WinJS ListView and Template Binding

雨燕双飞 提交于 2019-11-29 12:58:52
So I'm trying to display via a template some data from a JSON request. The data has some nested objects (of varying amounts) similar to this: data: "Some data", nested: [ { nested_data: "foo", bar: "foobar" }, ... ], ... I've managed to parse the JSON fine and store it in a WinJS.Binding.List object, and bound the result to a template. The problem I've got is actually displaying the nested JSON data in my template. The template looks something like this: <div class="appTemplate"> <div class="innerTemplate"> <h1 data-win-bind="innerText: data"> <h2 data-win-bind="innerText: nested"> </div> <

WinJS OData JSON

让人想犯罪 __ 提交于 2019-11-28 11:55:58
问题 try to send data to my database by web service an get this error: Primitive values of type 'Edm.Decimal' and 'Edm.Int64' must be quoted in the payload. Make sure the value is quoted here is my code: var newEntry = { datum: entryDate, monat: parseFloat(entryMonth), taetigkeit: document.getElementById("addWork").value, total: parseFloat(document.getElementById("addTotal").value), totalV: parseFloat(document.getElementById("addTotalV").value), in_auswertung: 0, teil_projekt_id: parseFloat

WinJS.xhr: Network Error 0x2efd, Could not complete the operation due to error 00002efd

自作多情 提交于 2019-11-28 10:07:22
I have problem with WinJS.xhr when developing a Windows 8 Metro application in JavaScript. WinJS.xhr({ url: "http://www.seznam.cz"}); When above code is executed, I see in log: SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd. I have enabled "Internet (Client)" capability in manifest. Maybe the problem is because I am behind proxy and using VPN, but I can access internet using Google Chrome (I just need to authorize, otherwise HTTP Status 407 - proxy authorization needed). How can I fix it? [EDIT] So I found that it is probably related to

WinJS ListView and Template Binding

别来无恙 提交于 2019-11-28 06:53:26
问题 So I'm trying to display via a template some data from a JSON request. The data has some nested objects (of varying amounts) similar to this: data: "Some data", nested: [ { nested_data: "foo", bar: "foobar" }, ... ], ... I've managed to parse the JSON fine and store it in a WinJS.Binding.List object, and bound the result to a template. The problem I've got is actually displaying the nested JSON data in my template. The template looks something like this: <div class="appTemplate"> <div class=

IndexedDB view all Databases and Object Stores

回眸只為那壹抹淺笑 提交于 2019-11-27 23:38:49
I'm using IndexedDB in a Windows 8 app and I'm very new to both. I've been able to successfully create, read, update, delete objects from object stores, and have created a couple databases and a few object stores. My question is how can I list all of my object stores and databases? I create a few bogus ones that are not needed and I would like to clean things up a bit, but I can't remember what they are named. Maybe this is anal retentive, but it seems like it should be possible to list all databases and stores. Thanks! There is currently no way of enumerating the existing databases in the