View Full Version : Ed Spencer is totally responsible!!!

28 Sep 2010, 6:05 AM
Having trouble with getting my ajaxresponse into a store....

I have a XmlStore and do myXmlStore.loadData(response.responseText,false);

My error msg is:
Uncaught TypeError: Object < has no method 'join'

looking into where the error appeared in the sencha touch source this is what is stated there:

//FIXME: this is not a good solution. Ed Spencer is totally responsible for this and should be forced to fix it immediately.
for (var i = 0, length = records.length; i < length; i++) {
records[i].needsAdd = false;

this is found at line 8363 of sencha touch v0.95 (debug-w-comments).

The problem that I have now:
I have a variable with my ajax response. How can I get my response.responseText in my store?


And someone call Ed Spencer! :)

28 Sep 2010, 6:10 AM
loadData expects data in the form:

prop1: 'a',
prop2: 'b'
prop1: 'c',
prop2: 'd'

28 Sep 2010, 6:21 AM
Thanks Evant for your fast reply!

How to get from an variable that contains my xml response to your data form?
Ext.data.XmlReader.read(); doesnt do much for me... or am I looking in the wrong direction?