alanwilliamson
21 Feb 2007, 3:48 PM
Good day good people, i am having a little problem here.
Consider the following snippet:
assetList = new YAHOO.ext.JsonView('assetList', imgTemplate, { multiSelect: true, jsonRoot: 'photodata' });
assetList.on( 'load', function( _v, _d, _r ){
alert( 9 );
} );
assetList.load( "/someurl" );
I can't get the alert() box to fire; the JsonView works okay as the data is rendered with no problems. Just no load event. I can get all the other events no problems.
I need to get access to the root JSON data returned, as I have other data in there I need to pull out (the total results for example).
Advice please!
Consider the following snippet:
assetList = new YAHOO.ext.JsonView('assetList', imgTemplate, { multiSelect: true, jsonRoot: 'photodata' });
assetList.on( 'load', function( _v, _d, _r ){
alert( 9 );
} );
assetList.load( "/someurl" );
I can't get the alert() box to fire; the JsonView works okay as the data is rendered with no problems. Just no load event. I can get all the other events no problems.
I need to get access to the root JSON data returned, as I have other data in there I need to pull out (the total results for example).
Advice please!