Questions tagged [winjs]

The Windows Library for JavaScript (WinJS) is a JavaScript library that can be used with any HTML, CSS, and JavaScript project on any platform including web sites, native apps, and hybrid apps. WinJS was first created for Windows 8 to enable first class, native-quality experiences in Windows Runtime apps.

The Windows Library for JavaScript (WinJS) is a JavaScript library that can be used with any HTML, CSS, and JavaScript project on any platform including web sites, native apps, and hybrid apps. WinJS was first created for Windows 8 to enable first class, native-quality experiences in Windows Runtime apps. Today, WinJS is released under the Apache 2.0 license as an Open Source project by Microsoft Open Technologies (MS Open Tech). The source code is available on GitHub: https://github.com/winjs/winjs. WinJS is actively developed by the WinJS developers working for Microsoft Open Technologies and in collaboration with the community of open source developers. WinJS provides a distinct set of UI controls with high polish and performance with fundamental support for touch, mouse, keyboard, and accessibility. It also provides developers with a cohesive set of components and utilities to build the scaffolding and infrastructure of their applications.

1687 questions
550
votes
28 answers

how to reset in Angular

I am developing a metro app with VS2012 and Javascript I want to reset the contents of my file input: How should I do that?
Jesus
  • 8,456
  • 4
  • 28
  • 40
52
votes
5 answers

Display: Flex loses right padding when overflowing?

I have an issue with a CSS3 flexbox. If I set the flexbox element to overflow and set a min-width value for the children, the right padding on the parent is lost? This is consistent on all supporting browsers. Here is an example of the error. If you…
Chris Spittles
  • 15,023
  • 10
  • 61
  • 85
44
votes
11 answers

Using jQuery with Windows 8 Metro JavaScript App causes security error

Since it sounded like jQuery was an option for Metro JavaScript apps, I was starting to look forward to Windows 8 dev. I installed Visual Studio 2012 Express RC and started a new project (both empty and grid templates have the same problem). I made…
patridge
  • 26,385
  • 18
  • 89
  • 135
30
votes
2 answers

Is dispatchEvent a sync or an async function

I am trying to write an event handler for a custom event in WinJS. I am not too sure how this works in IE - I am creating a custom event and dispatching it - var eventObject =…
Anz
  • 594
  • 1
  • 4
  • 15
28
votes
5 answers

WinJs in the browser?

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…
CD..
  • 72,281
  • 25
  • 154
  • 163
22
votes
4 answers

IndexedDB view all Databases and Object Stores

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…
skinneejoe
  • 3,921
  • 5
  • 30
  • 45
17
votes
4 answers

Chaining Promises recursively

I'm working on a simple Windows 8 app in which I need to fetch a set of data from a web site. I am using WinJS.xhr() to retrieve this data, which returns a Promise. I then pass a callback into this Promise's .then() method, which supplies my…
Zane Geiger
  • 277
  • 1
  • 3
  • 10
16
votes
1 answer

Deploying a Windows 8 Metro application that uses SQLite

Background We're using System Center 2012 to deploy a Windows 8 Metro-style application to Samsung slates in the field running Windows 8 Enterprise x64. The slates are joined to the domain and have a persistent DirectAccess connection back to it,…
George Durzi
  • 1,632
  • 1
  • 19
  • 31
15
votes
1 answer

Push message for Windows Phone (WNS): Blocked channel URL

I have a Windows Phone application running on a Windows Phone 8.1 device, and I am using Windows Push Notification Services (WNS) to deliver a push message to the device. Delivering push messages has worked for approximately 8 days, until I received…
Deathspike
  • 8,582
  • 6
  • 44
  • 82
14
votes
2 answers

Metro Style Apps: WinJS a must?

Yesterday I have started developing my first Metro style App using JavaScript. I've used one of those templates in Visual Studio 2011. This project template comes with a bunch of generated code which relies heavily on WinJS. The whole structure…
Helikaon
  • 1,490
  • 13
  • 30
14
votes
3 answers

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

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:…
Neil Hoff
  • 2,025
  • 4
  • 29
  • 53
14
votes
2 answers

Storing Cookies Windows Store App

As I discovered here, when I make a call to a server to ask for authentication in the form of a cookie, the cookie in the response is handled automatically by the underlying metro framework. However, this means I don't have access to the cookie…
danielmhanover
  • 3,094
  • 4
  • 35
  • 51
13
votes
1 answer

Windows Phone 8.1 HTML Company Apps - Can't install company app

I'm having problems trying to deploy any kind of HTML application for Windows Phone 8.1 as a Company App. The application I have developed is using a Visual Studio Apache Cordova Apps project, but I've also tested a manually created .appx, a Blank…
Klors
  • 2,665
  • 2
  • 25
  • 42
13
votes
1 answer

Exception when trying to read null string in C# WinRT component from WinJS

I have the following scenario: Data lib in C# compiled as a Windows Runtime component. One of its classes is looks like this: public sealed class MyData { string TheGoods { get; private set;} } The UI is in WinJS, and I have the following: var b…
Claire Novotny
  • 1,593
  • 1
  • 15
  • 19
13
votes
1 answer

Difference between Metro Apps written in HTML/CSS/JS vs XAML/C#

What is the difference between Metro apps written in web-development technologies and ones written in XAML/C#, etc.? Does Microsoft Metro API provide hooks for Javascript, where it's all native for C#? Should they work hand in hand, or is it the…
knownasilya
  • 5,998
  • 4
  • 36
  • 59
1
2 3
99 100