Categories | Question details Back To List | ||||||||||||||
about javascript issue Dears, thanks for your reply about loading tabbar issue,and it is ok now. but i meet a new question about javascript, as follow: i create a tabbar in a.html by loading b.xml /*######## a.html##########*/ <div id="a_tabbar" class="dhtmlxTabBar" style="width:100%; height:500px;"/> <scrip> tabbar=new dhtmlXTabBar("a_tabbar","left",150); tabbar.setImagePath("codebase/imgs/"); tabbar.loadXML("b.xml"); </script> /*###########################*/ /*######## b.xml ######*/ <?xml version="1.0" encoding="utf-8"?> <tabbar hrefmode="ajax-html"> <row> <tab id="a1" selected="1" width='20px' href="a1.html">a1</tab> <tab id="a2" width='20px' href="tab_html/a2.html">a2</tab> </row> </tabbar> /###########*/ now,i add a hyperlink like 'href="c.html"' in a1.html,and then i load .xml in c.html. now,when i select the hyperlink of "c.html", IE canot show c.html and tell me "this.entBOX is Null or Not an Object". pls help me,thanks! Answer posted by Support on Apr 07, 2008 05:42 Problem can't be reconstructed locally - please check attached sample. The HTML inside tab content area doesn't interact with tabbar logic , so it must be safe to use any valid links there. Attachments (1)
Answer posted by jerry on Apr 07, 2008 20:07 Dears, thanks your reply if i modify c.html as follow: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </head> <div id="a_tabbar11" class="dhtmlxTabBar" style="width:1024; height:420px;"> then now any error be caused,but if i delete the code " <h1>C</h1>", then i will meet the javascript issue. thanks! Attachments (1)
Answer posted by Support on Apr 08, 2008 02:25 You have missed <body> tag, without it page can't be correctly parsed, which cause js errors. |