Jump to content
Changes to the Jaspersoft community edition download ×
  • How to fix: visualize.js is incompatible with jquery simplyscroll plugin


    akonkin
    • Features: User Interface Version: v6.3.0 Product: Visualize.js

    Symptom

    (v. 6.3.0):

    Visualize.js incompatible with jquery simplyscroll plugin

    The scroller works when visualize.js is not loaded and visualize.js works if the scroller is not on the page.

    Quoting the relevant snippet of JavaScript source code:

    $(document).ready(function() {
    
         Loader.loadCssFileOnDemand("css/simplyScroll.css");
    
         Loader.loadJsFileOnDemand("thirdparty/jquery/plugins/simplyscroll/jquery.simplyscroll.min.js");
    
        
    
         $('ul.tickerEasy').children().not('li').remove();
    
         $(function() {
    
          $('#Id_ticker8DAA1B3D554F79CE58F4C4B8474C0947CBAF3B5C').find('ul').simplyScroll({
    
           speed  : 1,
    
           orientation : 'vertical',
    
           direction : 'forwards',
    
           pauseOnHover: true,
    
           auto  : true
    
          });
         });
        });

    Quoting the error message that is caused by the code above:

    Javascript error message
    
    TypeError: $(...).find(...).simplyScroll is not a function
    
    http://jlr-dev.principlereach.com/jlr_dev/script/html/concat/all.js?usn=247424666 line 1 > eval
    
    Line 8
    
    

    Solution:

    Plesae use the optimized version of Visualize.js.

    To use optimized version of visualize.js feature you should

    add _opt=true

    parameter.

    <script src="http://bi.example.com:8080/jasperserver-pro/client/visualize.js?_opt=true"></script>

    Please refer to the relevant documentation for the detailed

    explanation concerning this adjustment (Visualize.js Guide 6.3.0, page 8):

    2016-11-10_1427.png.4c62b528a0304f7df934520da799ddcd.png

    Please be informed that this plugin has been announced as obsolete by its vendor:  http://logicbox.net/jquery/simplyscroll/

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...