Skip to content

Instantly share code, notes, and snippets.

Created February 7, 2012 13:19
Show Gist options
  • Save anonymous/1759637 to your computer and use it in GitHub Desktop.
Save anonymous/1759637 to your computer and use it in GitHub Desktop.
function GetController(controller)
{
Ext.Ajax.request({
url: BASE+'common/conf',
params: {
controller: controller
},
success: function(response){
var json = Ext.decode( response.responseText );
eval(json.data);
if(window.FVB[controller].is_common)
{
showGrid(FVB)
}
else
{
new Ext.ux.JSLoader({
url: BASE+'media/js/controllers/'+controller+'.js',
onLoad: function(options) {
}
// onError: function(options, e) { alert('Error loading script'); }
});
}
Ext.get('main').unmask();
}
,scope:this
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment