dojo - javascript contents are not getting loaded,if i create a tab/contentPane dymaically with .xhtml as input -
i creating dynamic tab/contentpane below in home.xhtml file , trying call function display present in order.xhtml,its not getting called. ever java script there in order.xhtml not getting loaded.
in home.xhtml
    if(dijit.byid('ordersummary')!=null){         dijit.byid('ordersummary').destroy();         }     newtab= new dijit.layout.contentpane({         id : 'ordersummary',         title : 'order summary',         href : 'order.xhtml',         closable : true     });     dijit.byid('tabcontainer').addchild(newtab);      dijit.byid('tabcontainer').selectchild(dijit.byid("ordersummary"));   javascript in order.xhtml
<script type="text/javascript">     //<![cdata[     function display(){       alert(" m being called");              }      </script>      
there 2 ways this, either make script type dojo/method. or use extended dojox/layout/contentpane.
http://livedocs.dojotoolkit.org/dijit/layout/contentpane#executing-javascript-inside-contentpane