Categories | Question details Back To List | ||
LoadXML: incorrect XML *only * in IE7 I've got a problem loading dynamic XML-file for tabbar, but *only* in IE7/WinXP. Tabs worked for years, but after upgrade to dhtmlxTabbar v.1.2 Standard edition build 80512 I get an error loading the XML-file. It works just fine in FF and Chrome. Dynamic output validates in IE: <?xml version="1.0"?> <tabbar hrefmode="iframes-on-demand"> <row> <tab id="b1" width='80px' selected="1" href="prod_edit.cfm?ID=344&TaalID=1">Algemeen</tab> <tab id="b2" width='50px' href="prod_edit_text.cfm?ID=344&TaalID=1">Tekst</tab> <tab id="b3" width='80px' href="prod_edit_cats.cfm?ID=344&TaalID=1">Rubrieken</tab> <tab id="b4" width='50px' href="prod_edit_supplement_frame.cfm?ID=344&TaalID=1&Markerlist=2,4,6,7,11,23">Links</tab> <tab id="b5" width='50px' href="prod_edit_beeld_frame.cfm?ID=344&TaalID=1">Beeld</tab> <tab id="b6" width='80px' href="prod_edit_alt_beeld_frame.cfm?ID=344&TaalID=1">Extra beeld</tab> <tab id="b7" width='80px' href="stats_bekeken.cfm?ID=344&TaalID=1">Stats</tab> <tab id="b8" width='50px' href="prod_edit_homepage.cfm?ID=344&TaalID=1">Home</tab> </row> </tabbar> It's created with CFMX, using text/xml header, no whitespace. Server respons: Connection: close Date: Wed, 24 Sep 2008 11:57:08 GMT Content-Type: text/xml Content-Language: nl-NL Server: Microsoft-IIS/6.0 Content-Encoding: gzip Vary: Accept-Encoding Transfer-Encoding: chunked 200 OK Code to create tabset <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>94 : PvdA Groningen (Case)</title> <script src="/css/dhtmlXCommon.js"></script> <script src="/css/dhtmlXTabbar.js"></script> <script src="/css/dhtmlXTabBar_start.js"></script> <script src="http://www.ehio.nl/css/open_window.js" type="text/javascript" CHARSET="ISO-8859-1"></script> <link rel="stylesheet" href="http://www.ehio.nl/css/beheer.css"> <link rel="stylesheet" href="http://www.ehio.nl/css/dhtmlXTabBar.css" type="text/css"> <script language="JavaScript"> <!-- function refreshParent() { window.opener.location.href = window.opener.location.href; if (window.opener.progressWindow) window.opener.progressWindow.close(); window.close(); } //--> </script> </head> <body style="background: #fff;"> <div id="Layer2" style="position:absolute; width:80px; float:right;z-index:1000;top:5px;right:5px"> <form action=""><input type="button" class="Submit2" value="Sluit en reload" onClick="refreshParent();"></form> </div> <div id="Layer1" style="position:absolute; width:900px; height:600px; z-index:0; left:0; top:20px"> <div id="a_tabbar" style="width:900;height:585" skinColors="#FFFF00,#FFFACD" ></div> <script language="JavaScript" type="text/javascript"> tabbar=new dhtmlXTabBar("a_tabbar","top"); tabbar.setImagePath("/css/imgs/"); tabbar.loadXML("/tab/94/1/8.xml"); </script> </div> </body> </html> I've checked knowledgebase and docs, but I can't figure out how to solve this. Any ideas will be greatly appreciated. Thx, Paul Answer posted by Stanislav on Sep 29, 2008 16:11 If you are loading data from dyn. source, please be sure that data sent with correct content type - text/xml, this is critical for IE http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob - the article is grid related, but XML loading problems and solution, which it desribes, common for all components. |