I’m having trouble loading a JSON result into a list, but don’t know why.
I’ve tried removing the initial “accountdata:”, but with still no luck.
Anyone know why?
JSON
{accountdata:[{"id":"1","name":"Mr Admin","dob":null,"gender":"Male","userid":"dhtmlx","pwd":"*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29"},{"id":"14","name":"Graham Simmons","dob":null,"gender":"Male","userid":"poo","pwd":"*95AAD6ED425D05910F0CB188708EB68083F4104C"}]}
Using this …
view: "list",
id: "listAccounts",
url: "accounts.php",
datatype: "json",
scroll: true,
select: true,
template: "#name#, #gender#, #userid#",
select: true,
type: {
width: "auto"
}