PDA

View Full Version : Function Call to Render HTML Table



joefox
5 Mar 2009, 9:18 PM
I was just thinking about this...

Can i have a function within ExtOnReady and call it with javascript later on?

So for example...

I render a table on a page with ajax etc.

Then in my javascript i do something like this



function rendermytable()
{
CALL extjsfunction();
}

iulian
6 Mar 2009, 12:14 AM
scope.fnOnReady = function() {};
Ext.onReady(scope.fnOnReady);
...
function renderMyTable() {
scope.fnOnReady();
}
Though, why do you need to do this?