Categories | Question details Back To List | ||
tabbar error on ie hi, i'm using tabbar v1.2 standard edition and i'm getting a js error only on ie. This is the scenario: * i have an index page where i have two links to different pages (page1.php and page2.php), i use mootools (ajax) to load this pages into a div * the first page has the tabbar control (page1.php): <div id="tabs" style="width:99%;height:405px"></div> <script type="text/javascript"> tabbar=new dhtmlXTabBar("tabs","top"); tabbar.setImagePath("images/"); tabbar.setSkinColors("#ffffff","#F4F3EE") tabbar.loadXML("server/get_tabs.php"); </script> get_tabs.php: <?php header("Content-type:text/xml"); echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"; echo "<tabbar hrefmode='ajax-html'>"; echo "<row>"; echo "<tab id='t1' width='99%' selected='1' href='tab1.php'>tab1</tab>"; echo "</row>"; echo "</tabbar>"; ?> tab1.php <?php header("Content-Type: text/html; charset=iso-8859-1")?> <?php echo "tab1"; ?> * the second page (page2.php): <?php header("Content-Type: text/html; charset=iso-8859-1")?> <?php echo "page2"; ?> * the problem occurs when i load page1.php and then page2.php (or any other page), getting the following js error on ie: Line: 624, Character: 4, Error: Object required. (i'm using the js src file) after this error is shown by ie, it keeps occuring everytime i load any page (page3.php, page4.php if they exist). if i first load page2.php (or any other page without tabbar) everything works fine, the problem starts when i load page1.php (the one with tabbar) and then other page. the error doesn't affect the operation of pages, but it's annoying to see the error message in the status bar of ie i don't know if the problem is mootools, some kind of incompatibilty with your tabbar, or i'm doing something wrong. please help me thanks in advance Answer posted on Nov 20, 2007 04:12 I think the problem may be caused by library conflict, but I don't see how it can occur, the reported line is inside code which called each time grid resized to adjust tab positions. Actually , if you not change tab count dynamically and don't use multi-line tabbars or tab scrollers, you can disable this functionality without any side effects ( so it will not cause any error for sure ) tabbar.loadXML("server/get_tabs.php",function(){ tabbar._redrawRow=function(){ return true; } }); If it possible to isolate problem as separate sample, or provide link where problem can be reconstructed - please contact directly at support@dhtmlx.com, because code which you provided is correct, and I'm not able to reconstruct similar problem locally. Answer posted by jp on Nov 20, 2007 05:54 i looks like the problem was solved with your solution, thanks for your help |