Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Sep 02, 2009 14:18
open dhtmlx forum
<tabbar hrefmode='ajax-html'> supported on IE

Hi,

I have a tab which is loaded using a cgi script which returns xml str something like below:

------------------------------
print "Content-type: application/xml\n\n";
my $xmlstr;
$xmlstr="<?xml version='1.0' encoding='UTF-8'?>\n";
$xmlstr= $xmlstr."<tabbar hrefmode='ajax-html'>\n
<row>\n
<tab id='b1' width='200px' selected='1' href='$errHtml'>Failed Tests Summary</tab>\n
<tab id='b2' width='200px' href='$filHtml'>Filtered Tests Summary</tab>\n
        <tab id='b3' width='200px' href='$passHtml'>Passed Tests Summary</tab>\n
</row>\n
</tabbar>";

print $xmlstr;
--------------------------------------
The tab is created by the code below:

            summTab=new dhtmlXTabBar("SummaryTabBar","top");
            summTab.setImagePath("../ReportTools/js/dhtmlxTreeGrid/dhtmlXTabbar/dhtmlxTabbar/codebase/imgs/");
            summTab.setStyle("silver");
            var randnum=Math.floor(Math.random()*198765654);
    
            summTab.loadXML(codePath+"/perl/createXMLForSummaryTabs.cgi?htmlRptName=fbt_sdd_2009_09_02_h17m02s36");

------------------------------------------------------------------
The code just works fine on firefox but does not work on IE.
'$errHtml, $filHtml and $passHtml work fine on IE. This makes me think that there is some issue with '<tabbar hrefmode='ajax-html'> on IE.

Thanks,
Urmi

Answer posted by Alex (support) on Sep 03, 2009 01:06

Hello, 

the possible reason for the issue is that you didn't set content-type. It should be text/xml:

header("Content-type: text/xml");

Answer posted on Sep 03, 2009 06:42
Hi,

I do set the content-type to "application/xml";  using the command below:

print "Content-type: application/xml\n\n";

Thanks