0

I'm trying to set value by Ajax request, and it's not working! This is what I doing:

function getStores()
{
    var stores;

    Ext.Ajax.request({
        url: '/handlers/AccountHandler.php?method=list',
        success: function(response, opts)
        {
            stores = Ext.JSON.decode( response.responseText );
        }
    });

    return stores; // null || undefined
}
Tarabass
  • 3,132
  • 2
  • 17
  • 35
Macedonian
  • 47
  • 11

0 Answers0