www.webdeveloper.com
Results 1 to 2 of 2

Thread: Mootools 1.3.2 & IE8 Only Error, Object doesn't support property/method

  1. #1
    Join Date
    Feb 2008
    Posts
    16

    Mootools 1.3.2 & IE8 Only Error, Object doesn't support property/method

    Hello,

    My script is throwing an error only in IE8. I'm using Mootools 1.3.

    The error thrown is:

    Object doesn't support this property/method.

    The IE8 debugger is telling me that the error is this (line in bold):

    Code:
    append: function(original){
            for (var i = 1, l = arguments.length; i < l; i++){
                var extended = arguments[i] || {};
                for (var key in extended) original[key] = extended[key];
            }
            return original;
        }
    The above code is around line 380 in the uncompressed version. It's part of Object.extend.

    Now I am suspecting this is happening when I do a each on an array like object. This is the code I'm suspecting is triggering this:

    Code:
    var self = this,
                    c = certManager.addedCerts,
                    e = window.expManager.workExp,
                    cA = this.cA = [],
                    eA = this.eA = [];
                c.each(function(x){
                    cA.push(x.value);
                });
                e.each(function(x){
                    eA.push(x.retrieve('info'));
                });
    The first array (c) is populated with numbers only. The second one (e) is populated with objects that have a store/retrieve going on.

    Basicly what I am doing at this point in the script is submitting a form thru ajax. I'm transforming the objects into arrays and then encoding them with JSON.

    Does anyone has any idea why this is happening?

    I'll post the URL if you guys need me to.

  2. #2
    Join Date
    Feb 2008
    Posts
    16
    OK so fixed my problem. Apparently it was stemming from one of the fields that I had in my form. The field id was 'position' which clashed with something in IE8. Changed it to 'pos' and it now works.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles