<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
‘http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd’>
<html xmlns=‘http://www.w3.org/1999/xhtml’ xml:lang=‘en’ lang=‘en’>
<head>
<title>For demo purpose only :: &1</title>
<link rel=‘STYLESHEET’ type=‘text/css’ href=‘codebase/dhtmlxtabbar.css’>
<script src=‘codebase/dhtmlxcommon.js’></script>
<script src=‘codebase/dhtmlxtabbar.js’></script>
</head>
<h1>C</h1>
<div id=‘a_tabbar11’ class=‘dhtmlxTabBar’ style=‘width:1024; height:420px;’>
<script>
tabbar=new dhtmlXTabBar(‘a_tabbar11’,‘left’,50);
tabbar.setImagePath(‘codebase/imgs/’);
tabbar.loadXML(‘d.xml’);
</script>
</div>
when load d.xml,no any error be caused, but if i delete the code: ‘<h1>C</h1>’, then i have meet the javascript error.
thanks!
You have missed body tag, as result HTML not parsed correctly and may cause different errors.