Mega Code Archive

 
Categories / JavaScript Tutorial / Dojo Toolkit
 

Query to object

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