PDA

View Full Version : load url external url contents as a plain/text



viravax
13 Aug 2011, 8:46 PM
How can I load url contents like XML or JSON as a plain/text into a variable?
I don't wanna use JsonStore or XMLStore, I want to load the contents as a text.

Uberdude
15 Aug 2011, 2:01 AM
Ext.Ajax.request({
url: 'ajax/getStuff',
success: function(response, opts) {
var variable = response.responseText;
// do stufff...
}
});