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."\n
\n
Failed Tests Summary\n
Filtered Tests Summary\n
Passed Tests Summary\n
\n
“;
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 ’ on IE.
Thanks,
Urmi
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”);
Hi,
I do set the content-type to “application/xml”; using the command below:
print “Content-type: application/xml\n\n”;
Thanks