Object to query : query « Dojo toolkit « JavaScript DHTML






Object to query

 
<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>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.Query dojo icon class with dojo.query()
2.Query element id and add action
3.Query style
4.Query style from tag
5.Query to object
6.Get tag by ID and change inner html