2
votes
2answers
83 views

Can ScriptSharp / TypeScript be used to write WinRT UI JavaScript

Can the frameworks like ScriptSharp / TypeScript be used to write WinRT UI JavaScript. If yes, How can this consume a WinRT C++/CX component (.winmd+dll)?
0
votes
2answers
39 views

JavaScript runtime errors about undefined or null refences

I have implemented a SettingsFlyout. From the view of this flyout, my app collection some info from user (firsname) and want to store it in roaming settings. This information get stored when user ...
0
votes
1answer
17 views

How to get the screen resolution in WinRT JavaScript app?

No duplicate of get screen resolution winrt Above is possible in C# etc. but not in JavaScript. SO how can I get screen resolution in a JavaScript WinRT app?
0
votes
1answer
30 views

Why ready function on my SettingsFlout not getting hit?

I have implemented a SettingsFlyout. From the view of this flyout, my app collection some info from user (firsname) and want to store it in roaming settings. This information get stored when user ...
0
votes
2answers
69 views

Get Checked RadioButtons using JavaScript

so I’m trying to build a win 8 app, which includes a WebView. The WebView contains the HTML code (+JavaScript) below. <!DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN" ...
0
votes
1answer
36 views

Touch keyboard issue with Desktop mode of Windows8

We have very wierd issue with Windows 8. With desktop browser when we open any webpage and tap on any input textbox it doesn't pops up the keyboard and resize the browser. If I manually open the touch ...
0
votes
2answers
38 views

App settings to be stored into roaming data store

I have implemented an entry in SettingsFlyout control for settings pane. The page itself contains a dropdown. Whatever option user select from this dropdown need to be stored in roaming data store. ...
0
votes
0answers
21 views

using a winmd reference in javascript project

I am a beginner in Javascript. I am trying to use a WRC created in C# as a reference in javascript project i am writing. I am using the .winmd file that is generated as a reference in that js project. ...
0
votes
1answer
16 views

When onsettings event get fired

The documentation as to when onsettings here is fired describes as following Occurs when app settings are changed. Does it mean this event is fired every time a control used on settings pane ...
1
vote
1answer
43 views

How to test my app roaming settings

I am creating a windows 8 app. I want to save some settings as roaming. My understanding is that every app get per app and per user roaming settings on the azure cloud but it only happen once you app ...
0
votes
1answer
27 views

using image file using Share contract

I have an jpg file that is added in VS project within images folder. I can access its path using following var imagePath = "ms-appx:///images/BookTitle.jpg"; I want to use this image in my app ...
1
vote
1answer
38 views

Share charms start giving errors after using it few times

I am creating my app as a share source. I have used basic navigation template. Then in the home.js file I added following code. (function () { "use strict"; ...
0
votes
0answers
60 views

How to close the SettingsPane programmatically?

How can I programmatically close the SettingsPane? Background: The user changes some setting in a settings flyout and I have to immediately react in the UI when the user closes the flyout. But the ...
0
votes
1answer
45 views

Passing JSON over Windows-Runtime-Component

To hand over data in Windows Store Apps from Windows Runtime Components to managed code or JavaScript, there are besides the primitive types other supported types like IEnumerable<T>, ...
0
votes
1answer
34 views

How to call functions of SQLite for Windows Runtime from JavaScript App

I downloaded Precompiled Binaries for Windows Runtime from sqlite.org and added to Reference of Windows Store JavaScript project. But I don't know the next step. Although I would like to call ...
0
votes
2answers
24 views

search contract - constraining within an app and using from outside search charm

Two questions about search contract. Is there anyway of constraining the search within an app? Also I know how can I use search contract from inside a charm. Is there anyway this contract be used ...
0
votes
1answer
81 views

Bind Dynamic Data from an API to FlipView control

I've been trying to bind data from a json API call to the flipView with no luck. Here's the HTML code: <body> <!--Define the Template Here--> <div ...
1
vote
2answers
50 views

How to debug app when its not already running and activated due to search

Typically to debug an app, I will hit F5 to start debugging it. However I want this app not already running and it activated due to ActivationKind = search. If I hit F5, then app will get activated ...
1
vote
1answer
54 views

Breakpoint not getting hit due to symbols not been loaded

I am trying to debug an issue with my JavaScript based Windows 8 Store app related to search activation. I have re-build and deployed again on my machine but for some reason the breakpoint in the ...
0
votes
2answers
60 views

Are WinJS/Metro Apps single threaded?

I read in Windows 8 development tutorial that Metro apps written using HTML/JavaScript runs on single thread. If so, how it executes asynchronous functions in WinRT?
0
votes
3answers
70 views

Promise chaining not working. Why?

I have following code to select multiple contacts and the filter only names that have XYZ. I am using then and done to accomplish this filter. In my contacts, there is one contact named XYZ Dude and I ...
1
vote
0answers
67 views

Input data cannot be processed in the non-chronological order - Error being thrown from WinRT

I am currently using the below code for detecting gestures var inputManager = (function () { var that = {}; var gr; var canvas; var manipulating = false; ...
0
votes
2answers
87 views

Toast notifications only pop up if the app is being activated

I have this problem with toast notifications, my app shows toast notifications only when it is activated (I.e: when I am using it). Here is my code for the toast notifications: private void ...
0
votes
1answer
59 views

how to use WinRT C# Singleton in Javascript

I am new to Windows 8 development, my question is: how do I use C# Singleton in Javascript app? I am using the Static Initialization (http://msdn.microsoft.com/en-us/library/ff650316.aspx) in my C# ...
1
vote
2answers
33 views

Filtering contacts to display or show only set number of contacts

My app is calling pickMultipleContactAsync method that returns a list of contacts. If I want to filter only particular contats to display or show only a set number of contacts, does WinJS provide any ...
0
votes
2answers
108 views

Javascript - WinRT - How share score with twitter or Facebook?

I make a html5/JS game on WinRT for Windows 8. I would like to share score of a game with twitter or Facebook. Can we do this ? There is a the sharing contract, but I only know it for email. Can we ...
-2
votes
1answer
125 views

Passing a JS callback function to C# RT Component error: “Unable to cast object of the type 'mydb.SQLite3JSNoCallback' to 'mydb.SQLite3JSNoCallback'”

I have a Javascript Windows 8 App. I am writing a WinRT Component DLL using C# for interfacing with a database. For all functions such as OpenDB, ExecuteUpdate, ExecuteQuery (returning one row, ...
1
vote
1answer
107 views

Create Keyboard “Extension” like Windows 8 Metro IE

In Windows 8 Metro Style IE, if you click on the address bar, there will be "bookmark" tiles show up on the top of the address bar. If you are on a touch device, the tiles will show up above the soft ...
1
vote
1answer
134 views

Why is the result of document.getElementById null in this case?

I am basically new to JavaScript and WinJs stuff. Following this tutorial to learn it. My default.html is below <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> ...
0
votes
3answers
88 views

Design for inheritance and reuse of visual elements

I know with C++/C#, you can create controls that are reusable piece of code that you can use through inheritance etc. However, I am not sure if same principles could be used in a Windows 8 store app ...
0
votes
1answer
85 views

How to invoke Javascript in .NET in WPF & WinRT?

Here is a use case. I need to: Invoke JavaScript from .NET (C#) code JavaScript won't be compile, it comes from a dynamic source I need to pass .NET objects to that javascript code, preferable a ...
0
votes
1answer
143 views

Windows store app - item background color's

I cant change background color of item in my split application. I don't know, how, becaause i already tryed using css, and without any success. This is template for item(pretty much default): ...
0
votes
0answers
62 views

WinRT - HTML5 - javascript - canvas : detect a surface of touch

I work on a game in html5/javascript and i try to do it with touch too. But I have a problem, I would like to give the possibility to touch two or three buttons to make a combos. Example : I have ...
1
vote
1answer
125 views

winjs appbar.wincontrol is null

I am creating a Windows 8 HTML5 app, and implementing an app bar. When I access the appbar.winControl it is always null. So if for example I write appbar.winControl.show() I get an exception claiming ...
0
votes
1answer
225 views

Require.js code organization in Windows 8 app

I have a Windows 8 application written in JS that uses some of WinJS concepts: Pages Namespaces Meanwhile it uses Backbone models and collections as well as jquery, underscore and some other ...
0
votes
0answers
51 views

Windows store app - cryptographic key dialog

I manage to create cryptographic key dialog in c#(code below) and I get status code of response message ok. That's fine. But now i'm wondering, if this same think can be done in javascript project? I ...
0
votes
1answer
204 views

Twitter/Facebook authorization in Windows 8 app with Javascript

Is there any way to login with Facebook/Twitter in Windows 8 app based on Javascript and HTML5? Authorization pages do not allow themselves to be embedded with iframe and I can not navigate topmost ...
0
votes
1answer
23 views

Windows Store App purchase customer information

I have a Windows Store app and I want to build a website for it, but how will I know who has purchased my app from the Windows 8 app store? My app doesn't do in-app purchases, I don't use any other ...
0
votes
1answer
59 views

Button element not displaying text value

Steps to reproduce: Open Visual Studio 2012 Express for Windows 8 (Metro App Development) Left pane; select JavaScript as the language. Right pane; select Blank template Click OK Insert: <button ...
0
votes
2answers
109 views

class library project using javascript/hmlt5. Is it possible?

I am learning to create Windows 8 store application using java-script and html5. My question is that if I need to create some class libraries for this project, can these be created using ...
0
votes
0answers
136 views

On Windows RT, my JS App runs fine with debugging enabled but fails otherwise

App runs well on x86 machines Runs as expected on Surface if the debugger is attached or if run with debugger enabled (http://bit.ly/WO52kJ) But fails when I launch the app on Surface with debugger ...
0
votes
1answer
514 views

WinJS.UI.ListView - refreshing items when using template is built using javascript

I've got a ListView that was using HTML-defined templates like this: <div id="mediumListIconTextTemplate" data-win-control="WinJS.Binding.Template"> <div> <!-- Displays ...
1
vote
1answer
153 views

window 8 metro style apps javascript and html and create html editor [closed]

I need to create HTML editor textbox (textarea) like TinyMce or ckeditor. I tried TinyMce and ckeditor but they are not running in metro apps.
1
vote
0answers
107 views

Memory leak in WinJS when accessing a WinRT Component that returns asynchronously

I've been all over the documentation and various samples, and all of my code appears to be as it should be. However, I'm experiencing a memory leak that I cannot seem to plug. Here's what I know: ...
0
votes
1answer
91 views

Styling video tag in WinJS

I am trying to change the progress bar color of a video tag when playing a video in a Windows 8 HTML5 App, but I can not find which Css property I have to modify. Also, I can not find documentation ...
1
vote
1answer
68 views

Can a metro app switch to last running app?

On button click I want to go back to the last running app, just like the back button on android or Alt+Tab. Is there a way to do that?
1
vote
2answers
213 views

Can a metro app open the default browser without opening a page?

On button click I want to open the default metro browser (usually IE) without opening a new tab/page, just open the browser, If it is already running then just switch to it as it is to it's current ...
-1
votes
1answer
397 views

Windows 8 grid app template - adding data dynamically

I want to dynamically add data into data.js in my JavaScript Windows 8 app based on the grid app template. I want some particular group items in that template to scroll from right to left. And also ...
0
votes
0answers
68 views

The breakpoint is not hit while debug of a windows javascript metro app referencing windows runtime component in C#

I've changed the debug type from "script only" to "managed only" in the startup project. But I attached the debug to the javascript app, the breakpoint in the referenced WinRT component was not hit ...
1
vote
1answer
77 views

What is the OverloadAttribute used for?

So in designing an API I've found some problems with Javascript and overloads and all that fun stuff. One thing I think may help is the OverloadAttribute. The reason for this question though is that I ...

1 2 3 4
15 30 50 per page