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##########/





tabbar=new dhtmlXTabBar(“a_tabbar”,“left”,150);

tabbar.setImagePath(“codebase/imgs/”);

tabbar.loadXML(“b.xml”);





/###########################/



/######## b.xml ######/

<?xml version="1.0" encoding="utf-8"?>





a1

a2





/&############*/

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!

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.

1207572924.zip (59 KB)


Dears,



thanks your reply



if i modify c.html as follow:



 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    “w3.org/1999/xhtml” xml:lang=“en” lang=“en”>

 For demo purpose only :: &1
 
 
 




C





      <div id=“a_tabbar11” class=“dhtmlxTabBar”  style=“width:1024; height:420px;”> 
           
      



then now any error be caused,but if i delete the code "

C

", then i will meet the javascript issue.



thanks!


1207572924-reply.rar (51.4 KB)

You have missed tag, without it page can’t be correctly parsed, which cause js errors.