1. #1
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    168
    Vote Rating
    2
    GertBoers is on a distinguished road

      0  

    Default 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!

  2. #2
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    168
    Vote Rating
    2
    GertBoers is on a distinguished road

      0  

    Default


    And when i upload it to the internet, it starts working again in Safari...

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Sallanches, France
    Posts
    371
    Vote Rating
    1
    myput is on a distinguished road

      0  

    Default


    Have you tested with chrome and firebug? for look after the errors?

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    168
    Vote Rating
    2
    GertBoers is on a distinguished road

      0  

    Default


    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];
        },

  5. #5
    Sencha User
    Join Date
    May 2011
    Posts
    8
    Vote Rating
    0
    mpacific is on a distinguished road

      0  

    Default


    I'm getting the same weirdness. Anyone have a fix?

  6. #6
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    168
    Vote Rating
    2
    GertBoers is on a distinguished road

      0  

    Default


    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.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar