IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  How to implement Nivo Slider in CAF

    Posted Thu June 06, 2013 02:21 AM

    Hi All,

    Can anyone please let me know the steps to implement jquery sliders in CAF?

    Thanks,
    Sathyaraj Balaraman


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: How to implement Nivo Slider in CAF

    Posted Wed July 17, 2013 05:51 PM

    Right now, it is very difficult to include JQuery w/CAF due to the fact that CAF is using prototype and there is a lot of duplicate APIs by both javascript libraries.

    However, we are working to alleviate that situation so in a release or two it should be far easier to leverage many of the other very cool javascript frameworks with your CAF app.

    Regards,
    –mark


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 3.  RE: How to implement Nivo Slider in CAF

    Posted Fri July 19, 2013 10:47 AM

    jQuery comes with no conflict stuff to make this happen easily. Try this:

    <script src="prototype.js"></script>
    <script src="jquery.js"></script>
    <script>
    var $j = jQuery.noConflict();
    // $j is now an alias to the jQuery function; creating the new alias is optional.
    $j(document).ready(function() {
    $j( "div" ).hide();
    });
    // The $ variable now has the prototype meaning, which is a shortcut for
    // document.getElementById(). mainDiv below is a DOM element, not a jQuery object.
    window.onload = function() {
    var mainDiv = $( "main" );
    }
    </script>

    So you end up using $j instead of $ for jQuery, but at least you don’t have to use Prototype!


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS