Using ICEfaces with jQuery Library

ICEfaces is based on Prototype JavaScript-Library, but what when you want to use jQuery in your project too? - The trick is to define separate namespaces for each library, to prevent them from a clash.

The code snipped below shows how to do that:

   <script src="prototype.js"></script>
   <script src="jquery.js"></script>
     var $j = jQuery.noConflict();
     // Use jQuery via $j(...)
     // Use Prototype with $(...), etc.

For more details go to .

0 Kommentare:

Post a Comment