jmosbech/StickyTableHeaders — Issue #9: Function not executing when header is floating
Author: mersenneprimes
Created: 2012-03-03 01:37:59+00:00
State: open

Hi jmosbech ,

First of all, I want to thank you for building this.

Second of all, I am a beginner in jquery/javascript - I just started two weeks ago.

Here is my sample code: http://jsfiddle.net/mersenneprimes/JC4uQ/2/

Click on various rows, and then click on the "Submit!" button. You will see that all non-pink rows are hidden, and also for any data cells that have a "No" in it, the column where the "No" is located is hidden.

My problem is that the submit function, which hides rows and columns, does not execute. At what point it does not execute depends on where we put the $("table").stickyTableHeaders() statement in the document:

[1] Location of $("table").stickyTableHeaders(): before submit function

If we put it all the way at the top, before the submit function, then the submit function will execute only after it is floating.

[2] Location of $("table").stickyTableHeaders(): after submit function

If we put it all the way at the button, after the submit function, then the submit function will execute only before it is floating. Clicking on the submit button after it is floating doesn't do anything.

If anyone can give me a pointer so that I can potentially fix the situation I would be very much indebted.

Thanks,
Ehab