0

I have 3 jquery plugins - fixheadertable, jqTransform and facebox. Whenever fixheadertable plugin is called other two plugins are not working.

So i have to call those two plugins after each call of fixheadertable.

This is happening because fixheadertable recreates the table rows whenever i sort or use pager. So the plugins used in those table rows are not working.

The important thing is jqTransform and facebox should be applied only inside the table where fixheadertable plugin is applied. Otherwise facebox displays the content twice on overlay.

jQuery(document).ready(function($)
{
    $('.alter').fixheadertable({ 
    height : ($(window).height()- 200), 
    colratio : [30, ,50, 50], 
    zebra : true, 
    sortable : true,
    resizeCol : true,
    pager : false }); 

    $('form').jqTransform({imgPath:'../../assets/includes/formplugin/img/'});
    $('a[rel*=facebox]').facebox();
});

Edit :

Sample : http://jsfiddle.net/rQXtZ/6/

First click edit link. And then click on country to sort. Again try edit link. now facebox will not work

4

0 回答 0