ProgressBar: maximum value, progress : ProgressBar « Dojo toolkit « JavaScript DHTML






ProgressBar: maximum value, progress

 

<html>
  <head>
    <link rel="StyleSheet" type="text/css"
      href="js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      dojo.require("dojo.parser");
      dojo.require("dijit.ProgressBar");
      dojo.addOnLoad(show);
      
      function show() {
        window.setInterval(function () {
          var pb1 = dijit.byId("pb1");
          pb1.update({progress : ++pb1.progress});
        }, 500);
      }      
    </script>
  </head>
  <body class="tundra">
     <div dojoType="dijit.ProgressBar" id="pb1" places="0" progress="0" maximum="100">
     </div>
  </body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.ProgressBar Interval
2.ProgressBar creation
3.ProgressBar dialog
4.Set value for ProgressBar
5.Create ProgressBar