133 questions
44
votes
11
answers
33k
views
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 ...
4
votes
1
answer
3k
views
HTML5 Canvas performance very poor using rect()
I'm writing a game, which displays the score at the top of the screen in the following fashion:
canvasContext.fillStyle = "#FCEB77";
canvasContext.fillText(' Score: ' + Math.floor(score) + ' ...
9
votes
3
answers
33k
views
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: ...
4
votes
2
answers
7k
views
URI schemes supported in Windows 8 apps
What are the URI schemes supported in Windows 8 apps? I have seen references to ms-appx: and ms-appdata: and some rare mentions of ms-resource: but I could not find any document that would be a list ...
0
votes
3
answers
1k
views
WinJS ListView and Template Binding
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",
...
58
votes
6
answers
26k
views
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 ...
14
votes
3
answers
9k
views
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/...
5
votes
2
answers
7k
views
WinJS loading local json file
I am banging my head on this one.
I cannot find a way to open a simple json file from a subfolder in my WinJS App.
I have tried Ajax and WinJS.xhr, both to no avail.
I have also looked into opening ...
4
votes
1
answer
985
views
WinJS.xhr local network error
I am trying to make a simple windows 8 app but I have a problem.
When I try to make a xhr request to a local webserver it fails with the error code: 0x2efd
Sample code:
WinJS.xhr({ url: "http://...
2
votes
0
answers
109
views
Microsoft Advertising inside win32 app
Is it somehow possible to use the new Microsoft Advertising JS modules (From Windows 8 Metro) inside traditional win32 applications?
I have win32 application where I would like to implement some Adds ...
2
votes
3
answers
7k
views
What is the alternative to `alert` in metro apps?
I created my first app on Windows 8 vs 2012 and it runs and works fine. But when I try to say "helloworld" from JavaScript like this:
alert("Hello World");
I get an error:
Unhandled exception at ...
1
vote
5
answers
2k
views
Update live tile at fixed interval without having the app running
How can I update my app's live tile at a fixed interval, for example half a day, using JavaScript?
Moreover, it has to be able to update even though the app itself is not running (like the weather ...
1
vote
1
answer
361
views
Windows 10 Universal Javascript app SQLite in Windows Mobile 10
I currently have a somewhat working Windows 10 Universal app that uses the SQLite wrapper available here. The problem however is, when I deploy the app to a Windows 10 Mobile emulator in visual studio,...
1
vote
1
answer
2k
views
ListView add more items in Metro apps?
I have a metro application in which I have a Listview and service data contains above 100 items. Initially when am loading listview in my page it has to display only 8 items plus 1 more-related item ...
0
votes
2
answers
3k
views
How to create a Blob object from image url?
I am using Winjs(javascript for windows 8 app).
what I want is to create a simple blob object from a specific url of my static image by giving the path.
What is the solution?
Any help will be ...
13
votes
1
answer
3k
views
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'...
9
votes
1
answer
3k
views
WinJS: Remove tooltip from Slider
How can i remove the tooltip from a Slider control (input[range]) in WinJS?
6
votes
1
answer
12k
views
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, ...
6
votes
6
answers
3k
views
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 ...
5
votes
1
answer
1k
views
How to launch a URL in IE10 from within a Windows 8 WInJS application?
this might be a silly question but I have not been able to find an answer. I want to launch a specific URL with IE10 from within my Windows 8 javascript application, i.e. my application will be ...
4
votes
1
answer
2k
views
Windows 8 app (html & Javascript) : alternate way to show image from picture library (other that file picker)
I have been trying to create an alternate method to get and show images in listview (I mean other than file picker) as the app is already taking too much time to load and process. It turns out I've ...
4
votes
1
answer
1k
views
Windows8: device identifier
I am currently trying to retrieve a unique device identifier. Here is my code:
var token = Windows.System.Profile.HardwareIdentification.getPackageSpecificToken(null);
var reader = Windows.Storage....
4
votes
1
answer
2k
views
HTTP subtitles in WinJS video element
In the HTML media playback sample there's a code that demonstrates how to add subtitles to the video:
<video id="subtitleVideo" style="position: relative; z-index: auto; width: 50%;"
...
3
votes
5
answers
4k
views
Where Can I Download Microsoft.Phone.WinJS.2.1?
I'm trying to make a universal Windows App with WinJS. I've downloaded the latest update to VS2013. The RC version. I've installed all the SDKs I can find. I've installed the WinLibJS_VSE.exe ...
3
votes
1
answer
2k
views
How can I load remote content in a WinJS iframe whilst avoiding SEC7117 errors?
I'm trying to port an existing web app to Windows Phone 8.1 (and later, to Windows 8.1). This is not static content, this is a dynamic page with loads of client-side functionality.
My default.html ...