locked
Can i use WinJS for normal web pages?

    General discussion

  • Basically everythin's lain in the title, but could you use some parts of WinJS in normal web pages cause those apps are actually .htm , .html files oh,but would thoose pages wor on other OS?
    • Edited by zlajo Friday, March 23, 2012 7:49 PM wrote it wrong
    Friday, March 23, 2012 7:48 PM

All replies

  • No, not without a lot of work. WinJS is tied in with WinRT in a few areas and it's also not designed to be compatible with anything other than the Windows 8 App version of Trident (MSHTML.dll).

    It's easier to take an existing website and making it compatible with Windows 8 than the other way around. If you want to make something that works on both a website and Windows 8 I would suggest:

    1. Use jQuery (or some other cross platform js helper library) as much as possible.

    2. Minimize your use of WinJS and WinRT apis and controls, and where you do:

    3. Use a shim between calls to WinJS and WinRT so that they can be easily replaced with something else (or fail gracefully) when you deploy you app to a website.


    Monday, March 26, 2012 8:31 PM
  • How does WinJs actually works ?
    Wednesday, March 28, 2012 7:41 PM
  • I have a similar question - but let me rephrase it:

    If i am building an offline web application - designed specifically to work on WinRT & Win8 - can i use WinJS? how do i do it?

    Tuesday, May 28, 2013 1:12 PM
  • I found a nice tutorial spread over a few bite sized articles here: http://css.dzone.com/category/tags/31-days-windows-8?page=1

    or on their website: http://31daysofwindows8.com/

    Monday, January 13, 2014 5:01 PM
  • Learn about WinJS from here:- why? how it's used? where it's used?

    http://msdn.microsoft.com/en-us/library/windows/apps/br229773.aspx

    (make sure you know a bit of JavaScript basics before u get started)

    Wednesday, January 15, 2014 9:43 AM
  • No, you won't be able to use directly WinJS in the browser.

    But, and tell me if I'm wrong, I think you're looking for Metro interface in the way. If it is the case, I suggest you to use this very nice Boostrap like library : Metro UI

    I have to say that there is currently some limitations with this library, as it is still in development. However, you can use it safely (I did it recently).

    Hope this answered your question.

    Sylvain

    Saturday, January 18, 2014 10:53 AM