1. Important notice about Cloudbleed - if your site uses the Cloudflare CDN, and you intend to follow the Joomla security team's advice to change your site "secret", you MUST READ THIS NOTICE.
  2. Joomla 3.7 will be releasing soon (they just released RC2). If you intend to upgrade to 3.7, you will also have to update Fabrik, which will get an update as soon as 3.7 is released. Now would be a good time to do some testing - clone your site with Akeeba, update Joomla to the 3.7 RC2, and update Fabrik from github.
  3. Fabrik 3.6 will be released tomorrow (April 26th). This is a required update for Joomla 3.7, which released today. If you have updated to Joomla 3.7, and are not running recent github code for Fabrik, you may experience issues until you can update to Fabrik 3.6. If you haven't updated to Joomla 3.7, we suggest you hold off doing so until Fabrik 3.6 is released.

Javascript table plugin

Jun 26, 2013
Javascript table plugin
  • This is for Fabrik 2.x ONLY. For Fabrik 3.0 onwards, use Javascript for Fabrik lists
    [​IMG]

    • Access - Which user group should the js be run for?
    • Javascript code - A snippet of js code which is added to the document head. Will always be added regardless of whether a JS File is defined or not
    • JS File - A JS file, which contains a class of the same name. Files are located in components/com_fabrik/plugins/table/tablejs/scripts. The class has a series of methods which are triggered from various table actions
    • Can select rows - If set to yes will enure that a check box is created for each row, presuming no other plug-in prevents this. Useful if your table access levels mean that the checkbox would not normally be displayed, but your JS requires the checkbox to be usable.
    Example js script

    Code (Javascript):

     
    //class name needs to be the same as the file name
    var example = new Class({
     
    initialize: function(table)
    {
    this.table = table; //the table js object
    },
     
    //run once the table has run its ondomready event (gives access to this.table.form etc)
    onDomready:function(e){
     
    },
     
    // run when a filter is submitted
    onFilterSubmit:function(e)
    {
    alert('onFilterSubmit');
    var ok = $('tableform_'+this.table.id).getElements('input.fabrik_filter').every(function(f) {
    return f.getValue().length >= 0;
    });
    return ok;
    },
     
    //run when submit button is pressed
    onSubmitTable: function(evnt, task)
    {
    alert('onSubmit: ' + task);
    //return false if you want the form to stop submission
    },
     
    //run when page navigation occurs
    onNavigate: function() {
    alert('onNavigate');
    },
     
    // run when the table is reordered
    onOrder: function() {
    alert('onOrder');
    },
     
    //run when the limit list is changed
    onLimit: function() {
    alert('onLimit');
    }
     
    });