Fabrik and jquery conflict

d.bergonzi

Member
Hi, I needed to stick my table header so I used this jquery plugin stickytableheaders.js actually I tried with several plugins but the result is pretty much always the same.
Everything seems to be ok except for one function, I do have a search filter on my fabrik list which should load a new list with the records containing the value I typed on the filter, it doesn't. A new page is loaded with the same list.
I tried to disable mootols but nothing change, here is the the plugin code
http://178.62.92.79/psa/psa_abstegodev_j/media/system/js/jquery.stickytableheaders.js

And here is how I used the plugin, thanks for any help!
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
 
   
<script src="/psa/psa_abstegodev_j/media/system/js/jquery.stickytableheaders.js"></script>
 
<script>
   
   
    $.noConflict();
jQuery( document ).ready(function( $ ) {
  // Code that uses jQuery's $ can follow here.
      $("#list_1_com_fabrik_1").stickyTableHeaders();
});
// Code that uses other library's $ can follow here.
 
</script>
 
So you gave up on me, ha?:(

I never used (or even saw) filters used in headers before (you learn something new with fabrik every day, I swear) - so your example threw me for a loop a few weeks back.

But I finally got around to using them in one of my lists and needed to fix my fixed header script for that - and thought I'd pass it on to you - despite you giving up on me and going with stickytableheaders (been there/done that).

Go back to our discussion in my original thread on Fixed/Sticky Headers and check out the latest post. I updated my code there with something that should work for you (it works for me anyhow - even using filters in the table header). http://fabrikar.com/forums/index.php?threads/fixed-table-headers.39924/

Update: I also just added some code for creating a sticky table footer.
 
In J!, jQuery should already be in "noConflict" mode, which means you can just use jQuery() instead of $().

Also ... you can't "disable mootools", as there's about 50,000 lines or so of JS in Fabrik which uses Mootools.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top