alex1er
14 Jan 2007, 8:40 AM
Hello
I have a json object which it is not obtain by a request on php page.
Instead of do a view.load, i'de like to push the jsondata directly to the jsonview.
how can i do?
There my code
var config = {root:{ label:'pays', input:{type:'text', id:'unId'} } };
var view = new YAHOO.ext.JsonView( dialog.body.dom,
'<div ">{label}</div>',
{ multiSelect: true, jsonRoot: 'root' });
view.jsonData = config;
view.refresh();
thanks
I have a json object which it is not obtain by a request on php page.
Instead of do a view.load, i'de like to push the jsondata directly to the jsonview.
how can i do?
There my code
var config = {root:{ label:'pays', input:{type:'text', id:'unId'} } };
var view = new YAHOO.ext.JsonView( dialog.body.dom,
'<div ">{label}</div>',
{ multiSelect: true, jsonRoot: 'root' });
view.jsonData = config;
view.refresh();
thanks