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
12
votes
1 answer

Can a select drop down list be added to my winJS toolbar via Javascript?

I have created a toolbar in my windows app which contains a few buttons. What I want is a select dropdown list along side these buttons but no idea how to create it or append it to the toolbar via Javascript (as the elements of the list will change…
thatOneGuy
  • 9,977
  • 7
  • 48
  • 90
12
votes
5 answers

Horizontally center a DIV in page

I'm trying to center a div, which is the Microsoft pubCenter AdControl for Windows 8 apps in HTML5/JavaScript.
ReignOfComputer
  • 747
  • 2
  • 10
  • 30
12
votes
5 answers

WinJS with AngularJS

I have a lot of angularjs code (written by a colleague) and I'm trying to assess how much of it is re-usable in a Windows 8 Metro (or whatever they decide to rename it) app. Does anyone know how well angularjs gels with WinJS? As Windows 8 is still…
Endophage
  • 21,038
  • 13
  • 59
  • 90
12
votes
1 answer

How do I set an element's class using data-win-bind

I'm trying to dynamically set the class of a listview item template:
9
votes
3 answers

Is there a correct/recommended way of detecting my UWP app I'm running on a Phone?

Trying out Windows Universal apps with JavaScript I noticed the WinJS.Utilities.isPhone property is no longer available, which makes sense since there would be no reason to ask for that at runtime. I do want to know just for testing purposes if…
sebagomez
  • 9,501
  • 7
  • 51
  • 89
9
votes
3 answers

Python in Windows Store apps

The Windows Store app Python 3 For Metro claims that it allows users to edit and run Python files (I can't get it to work). How is this possible from within the sandbox? Can I run a file (say test.py on the desktop) from my JavaScript app?
9
votes
3 answers

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

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…
Jirka Meluzin
  • 320
  • 1
  • 4
  • 11
9
votes
1 answer

WinJS: Remove tooltip from Slider

How can i remove the tooltip from a Slider control (input[range]) in WinJS?
Kaffee Bohne
  • 1,457
  • 3
  • 14
  • 17
9
votes
1 answer

How to show/hide div in WinJS Template dynamically

I have a Windows 8 app with a template that contains a div I want to show or hide based on the value of a property inside a data-win-control="WinJS.Binding.Template". I have tried the following without luck:
Themos Piperakis
  • 675
  • 8
  • 25
8
votes
2 answers

"Unknown Runtime Error" when using Windows Runtime Component with Javascript UWP App

I'm trying to use a Windows Runtime Component to provide interoperability between my Javascript UWP app and C# logic that I've written. If I set the minimum version to Fall Creator's Update (build 16299, needed to use .NET Standard 2.0 libraries), I…
Courtney
  • 166
  • 9
8
votes
2 answers

IoT/WinJS/VS - Failed to create the web diagnostics object

I have successfully installed Windows 10 Insider Preview and Visual Studio 2015 RC on my PC, and Windows IOT Core on my Pi. I have created a new JavaScript Windows Universal App solution in Visual Studio, and tried to deploy as-is, i.e. the project…
pdr0663
  • 111
  • 1
  • 4
8
votes
2 answers

How to package a Windows Runtime component for distribution?

I have built a WinRT component (.winmd) for use by both JavaScript and XAML Windows Store apps. When including and referencing the loose .winmd file output in a JavaScript client, I see this build warning: Microsoft.AppXPackage.Targets(808,9):…
8
votes
1 answer

HierarchyRequestError when modifying DOM in Windows Metro application

I'm building a Windows Metro application using Javascript and HTML and it crashes with a HierarchyRequestError: Exception was thrown but not handled in user code at line 11, column 9 in…
sth
  • 222,467
  • 53
  • 283
  • 367
7
votes
3 answers

Metro App version info programmatically

How will I be able to get the version number of my application in metro javascript? For example, this is the 1.2 version of our application, how can I get the version number in my javascript metro code?
louis.luo
  • 2,921
  • 4
  • 28
  • 46
7
votes
2 answers

WinJS.UI.Flyout HTML on windows phone 8.1

I am trying to create a WinJS.UI.Flyout with a single input field and a single button to allow the user to enter a new value in the input field and click on the button to save it. However, on windows phone 8.1, Flyouts are not supported. How can I…