couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Alexander (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-717) Futon has scripting issues in IE8
Date Mon, 29 Mar 2010 20:32:27 GMT
Futon has scripting issues in IE8
---------------------------------

                 Key: COUCHDB-717
                 URL: https://issues.apache.org/jira/browse/COUCHDB-717
             Project: CouchDB
          Issue Type: Bug
          Components: Futon
    Affects Versions: 0.11
         Environment: User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center
PC 6.0; .NET CLR 1.1.4322; Creative AutoUpdate v1.40.01)
Timestamp: Mon, 29 Mar 2010 19:41:59 UTC

            Reporter: Andrew Alexander


Futon is no longer functional in CouchDB 0.11 under IE8.
This is a loss of functionality from CouchDB 0.10.

----- Error Message ------
Message: Object doesn't support this property or method
Line: 136
Char: 18
Code: 0
URI: http://localhost:5984/_utils/script/futon.js?0.11.0
-------------------------------

indexOf on Arrays is a Javascript 1.6 feature, which is not completely implemented in IE8


This can be resolved by using jQuerys $.inArray()

or 

by adding the following code to the top of the script (source: MDC)
https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/Array/IndexOf

if (!Array.prototype.indexOf)
{
  Array.prototype.indexOf = function(elt /*, from*/)
  {
    var len = this.length >>> 0;

    var from = Number(arguments[1]) || 0;
    from = (from < 0)
         ? Math.ceil(from)
         : Math.floor(from);
    if (from < 0)
      from += len;

    for (; from < len; from++)
    {
      if (from in this &&
          this[from] === elt)
        return from;
    }
    return -1;
  };
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message