1,687 questions
9
votes
1
answer
3k
views
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 ...
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
3
answers
5k
views
Dynamic template in listview (WinJS) in windows 8
I have a windows 8 application with a simple listview in a list layout. I have fetched my blog items (syndication), now what I want to achieve is add a dynamic item that will function as a "load more" ...
3
votes
1
answer
2k
views
Disable selection and itemInvoke event for a particular item in the listview
I have a listview. By default, all items have itemInvoke and single-selection enabled. But now, I would like to disable selection and itemInvoke (both event and animation) for one particular item with ...
4
votes
2
answers
2k
views
Two-Way binding in Windows 8 HTML / JavaScript Metro Apps
I'm trying to achieve a two way binding between an input field and a field in my JavaScript ViewModel. The binding has been wired up declarativly. Unfortunately the changes I do in the UI aren't ...
3
votes
1
answer
837
views
Nested Promises in WinJS
I'm implementing a DataAdapter to bind to a WinJS ListView control. That interface requires a getCount method which returns a Promise. If I return a WinJS.xhr object directly, that works fine. ...
6
votes
1
answer
824
views
How to give a "Empty ListView Message" when there is no data source
My application have a ListView with GridLayout. I am now trying to introduce ListView groups into my application. Say, the data source would usually have Group1, Group2 and Group3. I would like to ...
2
votes
0
answers
714
views
WinJS: use a XPath method with a responseXML object
I have a problem with a Windows8 application. Here is the simplified portion of code:
return WinJS.xhr({ url: url }).then(function (response) {
var response = response.responseXML;
var ...
2
votes
1
answer
2k
views
SOAP in WinRT (Windows 8 Metro App)
I want to use a SOAP web service in a Metro App, using WinJS. What is the best way to do it?
2
votes
1
answer
1k
views
Closing stream after using BitmapEncoder with WinJS Metro app
In a Windows 8 Metro application written in JS I open a file, get the stream, write some image data to it using the 'promise - .then' pattern. It works fine - the file is successfully saved to the ...
1
vote
2
answers
2k
views
Binding multiple HTML properties using WinJS?
WinJS allows you to bind HTML properties dynamically at run-time, similar to XAML binding.
<div id="itemTemplate" data-win-control="WinJS.Binding.Template"...>
<h3 data-win-bind="...
5
votes
1
answer
2k
views
Loading custom font in Windows 8 Metro App
I found this link on how to embed custom fonts in XAML apps. Is there some way I can achieve the same while building using JS? The following method did not work.
@font-face {
font-family: "...
1
vote
2
answers
302
views
Access object's fields from callback functions
I recently start learning developing metro apps using js and I faced problem updating _title and _errorMessage fields in callback functions _success and _error. When these functions are called this no ...
1
vote
1
answer
392
views
Disable touch trail animation
I'm developing a Win8 JavaScript app for a tablet and implementing my own touch animation trail - i.e. wherever the user drags their finger(s), my custom animation is left as a trail. However the ...
0
votes
1
answer
240
views
How do get a list of pages by Location in the Open Graph?
I would like to get a list of pages by Location, preferably Lat and Long, from the Facebook Open Graph. The Location object is not indexed, understandably, so FQL can't seem to get it. Has anyone ...
0
votes
1
answer
942
views
Adding event listeners to metro style grid application?
I have just created a sample grid application using html5 and JavaScript.
What now I want to achieve is to give some animation when user click on group header.
For that I wrote two functions. One ...
2
votes
2
answers
965
views
Display a 'loading' image till loading original images in 'image gallery app' - metro style
I am developing an image gallery application ..
Its loading images from the internet..
What i am doing is collecting image url into an array and bind it into a list view ..
Its works fine.. But ...
2
votes
0
answers
2k
views
How to use an Observable object in a WinJS ListView
I want to use an observable object within a ListView in the Windows 8 RT (Developer Preview from BUILD 2011) (using JavaScript).
The code below seems like it should work. It has a simple template for ...
28
votes
5
answers
15k
views
WinJs in the browser?
After playing a bit with the new Visual Studio 11 preview, I think the most interesting question is how can I make my new javascript based app run also in the browser with minimal changes? is that ...