locked
App Bar Buttons RRS feed

  • General discussion

  • Hy,

    I have an application which is running fine and its working perfectly, I want the buttons of the application on app bar, i have created the app bar but the problem is when i call a function in <button> tag it wont work. How i call a function with in the button tag is as follow :

    <button id="mybutton3" 
        data-win-control=
                     "WinJS.UI.AppBarCommand" 
        data-win-options="{id:'cmdCamera',
                  label:'Camera',
                  icon:'camera',
                  section:'selection',
          oonclick:'ShowPreview()',
                  tooltip:'Show a picture'}">

     </button>

    Please correct me where i am wrong. More over I am using radio buttons with in app can i use the radio buttons with in app bar

    Friday, September 21, 2012 5:08 PM

All replies

  • Move your onclick out of the win-data-options="" attribute...

    <button id="mybutton3" onclick="ShowPreview()"

    data-win-control= "WinJS.UI.AppBarCommand" data-win-options="{id:'cmdCamera', label:'Camera', icon:'camera', section:'selection', tooltip:'Show a picture'}"> </button>


    Monday, September 24, 2012 2:24 PM