dhtmlxCombo: Firefox incorrect XML

I’ve been trying to get your autosuggest comboBox working in a PHP website. Works on IE (no help), but not on Firefox. Using the most basic script I can:



function make_searchbox() {

// load libraries

$html = ‘’;

$html .= ‘’;

$html .= ‘’;



$html .=’

’;

$html .=’’;



return $html;

}





with quicklist.php being:



<?php

header(“Content-type: text/xml”);

$html = ‘<?xml version="1.0" encoding="ISO-8859-1" ?>’;

$html .=’’;

$html .=‘one’;

print($html);

?>



I can see in Firebug that the headers are returning without any spaces before the XML tag:

<?xml version="1.0" encoding="ISO-8859-1" ?>one



I’ve tried it with and without header call, with longer lists, with and without the encoding statement





Thanks.

a) quicklist.php miss ending tag
b) the complete@add necessary only if you want to add returned value to the existing list

Please check attached sample

1229766380.zip (16.3 KB)


Thanks, that got it. I’m posting a complete test php test file, since you don’t have one on your site:



<?php
header("Content-type: text/xml");
$html = '<?xml version="1.0" encoding="ISO-8859-1" ?>‘;
$html .=’’;
$html .=‘one’;
$html .=‘two’;
$html .=‘three’;
$html .=‘four’;
$html .=‘five’;
$html .=‘six’;
$html .=‘seven’;
$html .=‘eight’;
$html .=‘nine’;
$html .=‘ten’;
$html .=’’;
 
 print($html);
 
?>