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
7
votes
2 answers

How to detect if the surface keyboard is attached?

I need to implement certain functions only when the keyboard is attached to the surface. Is there a way I can detect when the surface keyboard is attached or removed ? I tried this code on Surface: function getKeyboardCapabilities() { var…
Stefania
  • 791
  • 1
  • 6
  • 17
7
votes
3 answers

WinJS: Check if is running in debug mode

I need this because the license information, I'm looking a way to know if the app is running in debug or production mode. If the app is running in debug mode, I need to use Windows.ApplicationModel.Store.CurrentAppSimulator otherwise I need to use…
Bruno Croys Felthes
  • 1,183
  • 8
  • 27
7
votes
1 answer

What's the purpose of the bld and bin folders in a Windows 8 JavaScript project?

I know that the files in the bld and bin folders are not what are being referenced by the deployed app (I can tamper with them and they have no effect on the app the next time I launch it from the start screen), so what are they for and what's the…
Jack Flint
  • 238
  • 1
  • 7
7
votes
1 answer

How to automate unit tests for Windows 8 HTML5 apps?

I'm writing a Windows 8 app, and writing unit tests for it. How can I run them, in an automated fashion, inside the Windows 8 environment? If I write super-simple JavaScript files, with no dependencies on the Windows 8 environment or the DOM, I can…
Domenic
  • 110,262
  • 41
  • 219
  • 271
7
votes
4 answers

WinJS not unloading js/css

I'm working on a Windows 8 Metro app and I've found (even on their sample applications where I haven't touched the code) that as you navigate between pages, the top level "default.html" acquires every single js and css file ever loaded during the…
Endophage
  • 21,038
  • 13
  • 59
  • 90
7
votes
1 answer

Can't change width of flyout

I have a flyout has id "productFlyout". I tried to set its background color and width. It has red color but the width doesn't change. It seems that Metro doesn't allow width too big. JS file: productFlyout.winControl.show(dummyDOM, "bottom",…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
6
votes
0 answers
6
votes
2 answers

Calling C# component from JavaScript in Windows 10 Universal App

I'm trying to use Windows Runtime Component (C#) in my Windows 10 Universal App (JavaScript). I found how to do that in Windows 8.x store apps: https://msdn.microsoft.com/en-us/library/hh779077.aspx but this solution is not working with Windows 10…
KingGary
  • 628
  • 6
  • 16
6
votes
1 answer

Prevent pixelated Images in Windows Store App

Any image of sufficient size that is displayed in any app I've worked on becomes pixelated when resized. The screenshot above shows a high resolution photo that - when outputted - becomes heavily pixelated. I've tried the good old (little-known)…
Chris Spittles
  • 15,023
  • 10
  • 61
  • 85
6
votes
2 answers

WNS Push notification not working even with status 200

I'm working on push notifications through WNS and WINJS (windows Phone 8.1). I followed this article https://msdn.microsoft.com/en-us/library/windows/apps/hh465460.aspx. Right now i can't receive push notifications on my devices, but the WNS servers…
6
votes
0 answers

How to view/debug Ajax requests made from WinJS in Visual Studio

Is there any way in Visual Studio to view the network activity of a WinJS app? There is a DOM explorer, and I can set breakpoints in the JavaScript, but I haven't been able to find an equivalent of Chrome's Network tab or anything like that to see…
chinabuffet
  • 5,278
  • 9
  • 40
  • 64
6
votes
1 answer

Where is ms-appdata?

I am building a modern ui app and want to, with a batch file, write and periodically update data accessible though the ms-appdata:// protocol in my winjs app. I have the batch file to copy folders, but I cannot find the file path of the…
Mooseman
  • 18,763
  • 14
  • 70
  • 93
6
votes
6 answers

How to prevent loops in JavaScript that crash the browser or Apps?

I am creating a live editor in Windows 8.1 App using JavaScript. Almost done with that, but the problem is whenever I run such bad loops or functions then it automatically hangs or exits. I test it with a loop such as:( It just a example-user may…
ashbuilds
  • 1,401
  • 16
  • 33
6
votes
1 answer

How do I hide virtual keyboard for select element in Win8 JavaScript app?

I'm creating a Windows 8 application in JavaScript. I have these html elements in the markup: