Query to object : query « Dojo toolkit « JavaScript Tutorial






<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>
    function Foo(  ) {
       var o = dojo.queryToObject("foo=1&bar=2&baz=3");
       alert(o);
       alert(dojo.objectToQuery(o));


    }


    </script>
  </head>
  <body class="tundra" onload=Foo()>


</body>
</html>








29.21.query
29.21.1.Query dojo icon class with dojo.query()
29.21.2.Query element id and add action
29.21.3.Query style
29.21.4.Query style from tag
29.21.5.Query to object
29.21.6.Object to query
29.21.7.Get tag by ID and change inner html