I have a simple piece of code that tries to embed two webparts. But it only embeds on and ignores the other. How do I get it to embed both of them?
<script type="text/javascript">
var studyListWebPart = new LABKEY.QueryWebPart({
partName: 'Maru Study List',
renderTo: 'studyListDiv'
});
var messageWebPart = new LABKEY.WebPart({
partName: "Messages",
renderTo: 'mDiv'
});
Ext.onReady(function(){
studyListWebPart.render();
messageWebPart.render();
});
</script>
<div id="main">
<div id="mDiv"/>
<div id="studyListDiv"/>
</div> |