dhtmlxCombo incorrect xml

Hi Guys,
I am trying to make an autocomplete work with a java serverside script. The combo complains with a javascript alert:

Error type: LoadXML
Description: Incorrect XML

My servlet responds properly and when I type “1” in the combobox I make it return:

<?xml version="1.0" ?> one I also tested hitting the url separately with the browser and it returns the same.

Request parameters arrive properly in my servlet:
a_dhx_rSeed/1286978723241
mask/1
pos/0

This is how I set up the combo:

dhtmlxcombo.js is //v.2.5 build 91111

The scripts are:

Any idea what’s going wrong?

Warm regards,

Wolfgang

I am seeing this on Firefox 3.6.10. (It works in IE 7).

Hi,

please have a look at the article in the documentation:

docs.dhtmlx.com/doku.php?id=othe … orrect_xml

I checked the link and my xml does not have any whitespaces at the top.

I figured it out. Firefox needed an explicit response.setContentType(“text/xml”); on the server.