ok, im creating a dynamic window using this javascript code, then inside that window is a toolbar with a button which calls a function that has an ajax method inside it.. of course in the server side code i got a public non-static function "check()" with an [AjaxMethod] attribute
var win;
win = Ext.getCmp('extwin_' + dv.getRecord(node).get('id'));
if(!win)
{
var toolbar = [{
tooltip:{title:'Unpublish', text:'Unpublish the selected question(s)'},
text: '',
iconCls:'icon-check',
handler: checkSelection ,
scope:this
}]
win = new Ext.Window({renderTo: Ext.getBody .............
}
var checkSelection = function()
{
Coolite.AjaxMethods.check();
}
can this be done with this button? because in the examples, the ajax method was triggered by a coolite control