Fixedheader and the Prototype Javascript Library
Fixedheader and the Prototype Javascript Library
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?
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?
This discussion has been closed.
Replies
Datatables work fine, but when I write:
[code] [/code]
datatables stop working.
dataTables v. 1.6.2
prototype v. 1.6.1
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