Hi,
I tried to build a dynamic string for populating a select but my
string seems to have a bad format !

var manufacturers= $.ajax( {url:'abcd.php',
async:false }).responseText;

{name:'manufacturer', index:'manufacturer', editable:true,
edittype:'select',
            editoptions:{ value: manufacturers}  },

abcd.php

while($row = mysql_fetch_array($result))
{
            $response->rows[$i]=array($row['Manufacturer']);
            $i++;
};
echo json_encode($response);

$responce has the following format

{"rows":[["manu1"],["manu2"],["manu3"]]}

Could you tell me what is the correct format ?
Thank's

Reply via email to