Skip to content

Instantly share code, notes, and snippets.

@fabiobruna
Created December 16, 2015 09:28
Show Gist options
  • Save fabiobruna/7d92d8c7fbda16d33e05 to your computer and use it in GitHub Desktop.
Save fabiobruna/7d92d8c7fbda16d33e05 to your computer and use it in GitHub Desktop.
Periode voor header halen
var HEADER = Ext.ComponentQuery.query('#ELEMENT')[0];
Ext.Ajax.request({
url: 'BESTAND.BESTAND',
success: function(response, opts) {
var obj = Ext.decode(response.responseText);
if (obj.success == true) {
HEADER.setTitle('BLABLA' + obj.periode);
}
},
scope: this
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment