Tag: WinJS
Getting the User’s Last Name in Windows 10 Apps using JavaScript
Below is a sample JavaScript code snippet demonstrating how to get the user’s last Name from the Windows 10 Universal Windows Platform App using WinJS. How to Get the User’s last Name in Windows 10 Apps using JavaScript ?
Windows Store App Project Templates
There are 5 different templates that are available in Visual Studio 2013 for the developers developing Windows Store App . Windows Store App Project Template 1. Blank App – This is one of the basic template which contains a single default.html file along with the default.css and default.js files. 2. Navigation App – If you app requires multiple pages , this is one of the…
Getting the User First Name in Windows 10 Apps using JavaScript
Below is a sample JavaScript code snippet demonstrating how to get the user’s first Name from the Windows 10 Universal Windows Platform App using WinJS. How to Get the User’s first Name in Windows 10 Apps using JavaScript ?
How to Create a Class in Javascript in WinJS ?
You can define a new class using WinJS.class.define when developing Windows Store App using Javascript. How to Create a Class in Javascript in WinJS ? The WinJS.Class.define method can be used to create a new class in WinJS . It accepts 3 parameters – Constructor – instanceMembers – staticMembers Below is a sample code snippet demonstrating the usage WinJS.Class.define to create a new class in…
Creating Namespace in WinJS for Windows Store App ?
When developing Windows Store App using WinJS library , there are times when you want to create a namespace . You can use the WinJS.Namespace.define() method to create a namespace. Below is a sample code snippet demonstrating how to create a namespace in WinJS for Windows Store App using WinJS. Creating Namespace in WinJS for Windows Store App ?
How to Derive a Class (Inheritance) in Javascript (WinJS) ?
If you want to derive a class from another class in Javascript when developing a Windows store app using WinJS library , you can use the WinJS.Class.derive method to do it. How to Derive a Class (Inheritance) in Javascript (WinJS) ? Below is a sample code snippet demonstrating how to derive a class in WinJS.
Get the Current Location from Windows 8.1 Store App using JavaScript
Below is a sample code snippet demonstrating the procedure on how to get the current user location Windows 8.1 Store App using JavaScript. How to Get the Current Location from Window 8.1 Store App using JavaScript ? Add the button and the span element to the html page where you want to show the current location. <button id=”GetLocation”> Get Location </button> <span id=”locationinformation”></span> Add the…
Using the Tooltip control in WinJS for Windows Store App
The tooltip WinJS control in Windows Store App can be used to display the customizable tooltip on the HTML element . When you hover over the element , the tooltip appears foe few seconds and disappears as soon as the cursor is moved away from the HTML element. Using the Tooltip control in WinJS for Windows Store App Below is a sample code snippet demonstrating…