//<code lang="css">
<style>
body {
margin: 2px;
padding: 2px;
}
.box {
position: relative;
background-color: white;
border: 2px solid black;
padding: 8px;
margin: 4px;
}
</style>
<style>
body {
margin: 2px;
padding: 2px;
}
.box {
position: relative;
background-color: white;
border: 2px solid black;
padding: 8px;
margin: 4px;
}
</style>
//javascript using <code lang="javascript">
for(var i=0;i<10;i++){
echo 'this is javascript!';
}
for(var i=0;i<10;i++){
echo 'this is javascript!';
}
- //this is using <code lang="php" start> apparently you cant use the PHP tags inside this just yet...
- }
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <title>Dojo Widgets being loaded inside of a ContentPane and still working</title>
- <script type="text/javascript">
- var djConfig = {isDebug: true};
- </script>
- <script type="text/javascript" src="dojo/dojo.js"></script>
- <script language="JavaScript" type="text/javascript">
- dojo.require("dojo.widget.ContentPane");
- </script>
- </head>
- This text is before the content pane in the dom structure.
- <div dojoType="ContentPane" class="box" id="test" executeScripts="true" parseContent="true" href="contract.php?id=1">
- </div>
- <script type="text/javascript">
- dojo.addOnLoad(function(){
- dojo.event.connect(dojo.widget.byId('test'),'onLoad','init');
- });
- function init(){
- dojo.debug('test has loaded');
- }
- </script>
- This text is after the content pane in the dom structure and if you look at the source you will see we are loading a page that contains widget using the href attribute of the Dojo ContentPane.
- </body>
- </html>

*awesome*. Thanks
*awesome*. Thanks Karl!