andycrespo27 / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

All columns hidden (hide function / attribute name conflict) #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
version: 1.0b3 [+ jquery 1.2.3]

On my first try to use FlexiGrid (I only transform existing tables - no
special arguments/data) all the columns where gone after the execution of
flexigrid().

On debugging I found the following line to be responsible for that:

if (this.hide) $(this).hide();

Firebug was showing the jquery hide FUNCTION as value of "this.hide" [not a
boolean] - Javascript then evaluates that as TRUE and hides every column.

I fixed it by replacing every occurrence of .hide (the boolean one) with
.hidden so that the function name does not match the attribute.

so now there are lines like: 

if (this.hidden) $(this).hide();
if (pth.hidden) $(this).hide();

I don't know how exactly to reproduce the bug but maybe you can find out /
guess where that conflict is coming from.

Original issue reported on code.google.com by daniel.s...@gmail.com on 28 Jul 2008 at 9:53

GoogleCodeExporter commented 8 years ago
hmm.. i've never actually have a problem with this in Firefox, maybe you can 
share your code so i can determine 
what's causing the conflict.

Original comment by paulo...@gmail.com on 15 Aug 2008 at 10:33

GoogleCodeExporter commented 8 years ago
Sharing that code seems quite difficult - it happens inside a JSF webapp 
including
RichFaces 3.1.6 which in turn includes some other javascript files like 
prototype
1.6.0 and scriptaculous.

Digging deeper while debugging it seems like the "hide" function got declared by
Prototype (inside one of the RichFaces components I guess).

Original comment by daniel.s...@gmail.com on 18 Aug 2008 at 10:00

GoogleCodeExporter commented 8 years ago
Fixed and in trunk.

Original comment by eric.caron on 22 Apr 2011 at 3:13