Hi,
I’m trying to add a combo in the grid.
The grid it’s working well, combo not
I have the code:
[code]var combo = grd.getColumnCombo(columnIndex);
combo.loadXML(“./php/_food.php”);
// or
// combo.loadXML(“_food.xml”);[/code]
php file is looking like this:
[code]<?php
require_once(“./codebase/connector/options_connector.php”);
require(“config.php”);
$connection = mysql_connect($mysql_server,$mysql_user,$mysql_pass);
mysql_select_db($mysql_db);
$options = new SelectOptionsConnector($connection, “MySQL”);
$options->render_table(“food”,“id”,“id, name”);
?>[/code]
and the xml:
<?xml version="1.0" ?>
<select xmlcontent="true">
<option value="1">apple</option>
<option value="2">kiwi</option>
<option value="3">hamburger</option>
<option value="4">french fries</option>
</select>
When I loading with xml I get:
<?xml version="1.0" ?>
<select xmlcontent="true">
<option value="1">apple</option>
<option value="2">kiwi</option>
<option value="3">hamburger</option>
<option value="4">french fries</option>
</select>
and when I’m loading with php I get:
<?xml version='1.0' encoding='utf-8' ?><data><item value="1" label="apple" />
<item value="2" label="kiwi" />
<item value="3" label="hamburger" />
<item value="4" label="french fries" />
</data>
Can anybody tell me what am I doing wrong please?
Regards