I have the following code on an HTML page. When the QWP renders, instead of just rendering to the DIV, it destroys the rest of the body. Code below:
<html>
<script type="text/javascript">
Ext.onReady(function(){
new LABKEY.QueryWebPart({
title: 'Active Forms:',
schemaName: 'study',
queryName: 'Clinical Encounters',
scope: this,
errorCallback: EHR.UTILITIES.onError
}).render('ehrDataEntry');
});
</script>
<body>
<div id="ehrDataEntry" />
<p/>
<div>I will get destroyed when the QWP renders</div>
</body>
</html>
However, if I change the div to this:
<div id="ehrDataEntry"></div>
It no longer happens. Is that the expected behavior from an empty tag? Is this more browser behavior than labkey behavior? thanks for the help. |