-
12 Oct 2011 12:03 AM #1
Strange Error in Safari
Strange Error in Safari
Hey,
has anyone ever had this problem?
All of the sudden my application stopped working when i tried to view it with a local server (localhost).
I got this error:
TypeError: 'null' is not an object (evaluating 'rawData[name]')
When i opened the index.html directly, the problem was gone...
After a while i got the same error when i opened the file directly.
Now my app won't work in Safari altogether. In other browsers it still works.
It happened after some changes i made, but when i undid the changes it still didn't work.
Other apps seem to be working fine.
Thx!
-
12 Oct 2011 12:37 AM #2
And when i upload it to the internet, it starts working again in Safari...
-
12 Oct 2011 12:46 AM #3
Have you tested with chrome and firebug? for look after the errors?
-
12 Oct 2011 12:56 AM #4
In chrome there is no error...
It has something to do with this function (inside the sencha touch debug.js file):
Code:getRecord: function(id) { if (this.cache[id] == undefined) { var rawData = Ext.decode(this.getStorageObject().getItem(this.getRecordKey(id))), data = {}, Model = this.model, fields = Model.prototype.fields.items, length = fields.length, i, field, name, record; for (i = 0; i < length; i++) { field = fields[i]; name = field.name; if (typeof field.decode == 'function') { data[name] = field.decode(rawData[name]); } else { data[name] = rawData[name]; } } record = new Model(data, id); record.phantom = false; this.cache[id] = record; } return this.cache[id]; },
-
3 Nov 2011 2:21 PM #5
I'm getting the same weirdness. Anyone have a fix?
-
18 Nov 2011 3:50 AM #6
Now something similar is happening on my iphone...
The app works on my computer, it works on my simulator, it works on my iPod touch,
but it won't work on safari on my iPhone...
When i open the app trough the icon on my homescreen (of the iPhone) it WORKS, BUT it won't recognize the css changes i made, but on my iPod it does recognize the css.
WTF?!
Very annoying, but maybe i'm doing something wrong.


Reply With Quote