Fixedheader and the Prototype Javascript Library

Fixedheader and the Prototype Javascript Library

SojborgSojborg Posts: 17Questions: 0Answers: 0
edited May 2010 in General
Hey,

In my Asp (classic) webapplication im allready using the Javascript library called Prototype. Now im trying to impletment DataTables and the FixedHeader plugin. DataTables works great but the FixedHeader is interfearing with the Prototype Library. I get the following error in Firebug when i try to sort the datatable (with FixedHeader active. Without FixedHeader the sorting works fine):

this._each is not a function url:http://localhost/webhost/javascripts/prototype.js line:446

As you can see the error happends in my prototype file.

My guess is that because the FixedHeader is called by FixedHeader.Prototype its interfearing with the Prototype library?

I don't know how to fix this. Anyone who can help me out?

Replies

  • mefmef Posts: 1Questions: 0Answers: 0
    edited May 2010
    I have the same problem.
    Datatables work fine, but when I write:
    [code] [/code]
    datatables stop working.
    dataTables v. 1.6.2
    prototype v. 1.6.1
  • akimakim Posts: 2Questions: 0Answers: 0
    Ditto on the same problem.

    Created a test file including the following JS scripts:

    Prototype 1.6.1 & 1.7 rc2
    jQuery 1.4.2
    dataTables 1.6.2
    FixedHeader 2.0.2

    Problem seems to occur when using FixedHeader/Prototype and trying to sort on a column.

    In FF 3.6.6, get the following error (but sorting still works):

    this._each is not a function
    http://localhost/js/prototypeBeta.js Line 817

    In IE 8 (sorting still works):

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729) Timestamp: Wed, 7 Jul 2010 17:32:59 UTC

    Message: Object doesn't support this property or method
    Line: 705
    Char: 7
    Code: 0
    URI: http://localhost/js/prototype.js

    In IE 7 (sorting does NOT work):

    Line: 1061
    Char: 5
    Error: Object doesn't support this property or method
    Code: 0

    Tried debugging myself, but no luck. Any help would be appreciated.

    Thanks
This discussion has been closed.