Load Combobox data using php

Hi Team,

Much like using grid, I’m trying to load the list for the combobox by using a php file as below:

	var cust_dropdown_box_config = {
		label:"Select Customer:",
		labelInline: true,
		labelWidth: 150,
		readonly:true
	}
	
	var cust_dropdown_box = new dhx.Combobox("cust_select", cust_dropdown_box_config);
	cust_dropdown_box.data.load("getCustomerNames.php");

If I load the php file manually:

http://localhost/xxx/getCustomerNames.php

[{value:'Custname'}, {value:'Custname2'}]

Seems correct, but doesn’t work.
Any ideas?

Thanks!
Ewan

Have also updated the php to output doublequotes like this too. No dice:

[{value:"Custname"}, {value:"Custname2"}]

I apologize for the delay with the reply.

In case of using the load() method you should also place in quotes the name of the property:

[{"value":"Custname"},{"value":"Custname2"}]