1,687 questions
Advice
0
votes
2
replies
74
views
What prevents Javascript memory leaks in software applications?
I was thinking back to WinJS or WinUI with Windows Universal Applications (WUA) from about 10 years ago. I am wondering how it compiled and avoided typical architecture errors. If there is no memory ...
1
vote
1
answer
42
views
Override WinJS promises with native promises as a Chrome Extension content script?
I have a Chrome Extension that injects a content script along with a library of components to display a UI (built using StencilJS). I've found on some sites that our UI does not display correctly ...
0
votes
1
answer
122
views
Winjs project - use File picker to select audio file and play it
I'm working with Visual Studio 2017, winjs project. How to use FilePicker to open file dialog and pick an audio file, then play that file? Thanks guys.
1
vote
0
answers
35
views
A WinJS SDK which breaks all jQuery plugins?
I wanted to include a WinJS SDK from a third party into my electron app. However, I'm very confused because the script itself doesn't seem to be valid Javascript code, it's missing semicolons and ...
1
vote
1
answer
1k
views
how to run code when Microsoft toast notification button is pressed in javascript
I am trying to make a microsoft toast notification that has buttons or so called "actions"
in this code i have 3 buttons A,B,C and i want to check if any of them are clicked and if so the run a line ...
0
votes
1
answer
249
views
WinJS UWP javascript - how to read a file through a file input
In my HTML, I have this input:
<input type="file" id="csv_file_input" />
I want to read the text content from that input. I tried this:
var fileInput = $('#csv_file_input');
...
0
votes
0
answers
89
views
Generate PDF from HTML contents in Winjs
I am trying to develop App using WinJS. I want to convert a HTML Content to a PDF file using JSPDF but I'm getting this error:
JSPDF is undefined.
I had tried JSPDF for WinJS.
Here is my below code:...
0
votes
0
answers
49
views
onpointercancel not triggered in Edge when user touches and scrolls the win-list item together
We are building for latest Edge browser and I am seeing the issue where when user touches and scrolls a win-list item, the item turns grey and no other item is invoke-able anymore. I have created a ...
0
votes
2
answers
967
views
Saving a Canvas as an image in UWP
I found this documentation for exporting and saving a Canvas as a png. It gives the following code:
var Imaging = Windows.Graphics.Imaging;
var picker = new Windows.Storage.Pickers.FileSavePicker();
...
2
votes
1
answer
464
views
Issue with Using WebRTC getUserMedia with UWP WebView
I've created a basic UWP application with a WebView. I'm navigating to this URL: https://webrtc.github.io/samples/src/content/getusermedia/gum/ to test the use of getUserMedia().
The error I get is:
...
0
votes
1
answer
24
views
WinJS.UI.ListLayout make contenteditable on one item but have itemsReorderable
How to make content of one column in item in WinJS.UI.ListLayout editable contenteditable="true", but remaining list columns remain active to other operations of ListLayout such as itemsReorderable="...
1
vote
1
answer
222
views
Where do Javascript UWP apps store IndexedDb?
I make Windows Store apps with HTML + Javascript, WinJS type apps.
I normally use localStorage to store most information, and I know how to navigate to where that localStorage is in the file system:
...
0
votes
0
answers
74
views
how to implement QR code Scanner in WinJS
I want to implement QR code Scanner in WinJS for UWP apps. I have added reference of ZXing library but could not understand how to implement it in winJS project . I am using visual studio 2017.Any ...
0
votes
1
answer
76
views
How to remove ui-light.css from WinJS build?
WinJS or MobileFirst is injecting this piece of code on my index.html, the problem is ui-light.css is messing up with my .css even though it is the very first <link> on the <head>
Is there ...
0
votes
1
answer
95
views
How to update a WinJS UWP app after the Windows system accent color changes
I have 2 variables, accentColor, and backgroundColor. backgroundColor updates as expected when I change the Windows settings from Light to Dark mode, but accentColor does not change when I choose a ...
0
votes
1
answer
265
views
In a Windows 10 UWP WinJS App, how can I decide which files get included in the build?
I'm building a UWP app with javascript and in a subfolder, I have a node_modules folder and a bunch of files that are there for compilation and debugging, but should not be in the final build.
I don'...
0
votes
1
answer
453
views
How to get latitude and longitude in uwp app without internet?
Hi i am using HP Tablet with GNSS sensor built-in with it , so i want to get Geo-location that is latitude and longitude without internet but i am not able to get Geo-location coordinates without ...
0
votes
0
answers
195
views
How to handle 404 URI error in UWP Javascript Hosted web app Without WinJS
How to handle 404 URI (Not included in appxManifest->Content URI
section) in UWP app.
If i add URI domain name in
appxManifest->Content URI section then msapp-error.html will take
care. other wise ...
0
votes
2
answers
552
views
How can i run Universal Windows Platform desktop app on android mobile device?
I have been Implemented Universal Windows Platform app in visual studio using winJS, javascript,css and html now i want to use same code base for creating android application..so what all things i ...
0
votes
1
answer
104
views
HTML5/JavaScript Windows Store App packaged using VS2013 vs VS2017
I have a HTML5/JavaScript Store project built on VS2013 using WinJS2.0 and AngularJS. The app is pretty matured at this stage and runs fine both Windows 8.1 and Windows 10. However, when I try to ...
6
votes
0
answers
208
views
Window for input text is moved to the top after using on-screen keyboard on surface
I have the following code in WinJS:
<win-menu id="showAddContentMenu"
anchor="'#showAddContentMenuCommand'">
<win-menu-command label="::'newFolder' | translate"
...
1
vote
1
answer
1k
views
SourceMap read failed
I have a WinJS-UWP-Application, where I use TypeScript 2.5. I just upgraded from VS2015 to VS2017. When I want to debug my WinJS-UWP-Application the Breakpoints inside my .ts-Files are not noted, ...
0
votes
1
answer
309
views
UWP: MediaCapture Access Violation since Windows Update
Since the latest Windows Update (1703) the Windows.Media.dll always throws an exception when I try to display a camera preview using a HTML5 video tag that was originally working.
The whole error ...
-2
votes
1
answer
531
views
Signup with Microsoft developer account
I want to publish UWP app to store. For this user must have sign-in with Microsoft developer account. I am trying to sign-up process from last 2 weeks but each time it throws an error
Something ...
3
votes
2
answers
112
views
Windows tap takes long to respond
I've created an Ionic 2 app. Now I have my buttons set up like this:
<button class="my-button" (tap)="doSomething()" tappable></button>
Now the tappable should remove the 300ms delay on ...