LiveWhale CMS

Welcome, Guest Login

Support Center

Our documentation is moving: docs.livewhale.com

Please check docs.livewhale.com for the most up-to-date LiveWhale CMS and LiveWhale Calendar documentation. The below legacy documentation will remain available as a reference until the documentation migration is complete.

Using LiveWhale jQuery and jQuery UI

Last Updated: Jul 06, 2016 01:43PM PDT
LiveWhale is design and function agnostic, so you can use any JavaScript library or libraries you like, but under the hood LiveWhale is largely based on jQuery.

If you wish, you can use LiveWhale’s jQuery rather than load another version/edition. That comes with some caveats, but perhaps acceptable ones:
  1. You’re tied to the version of jQuery with which LiveWhale ships so upgrades will drive your upgrade schedule.
  2. LiveWhale also loads jQuery UI, but only certain elements, so if you need more than that, you will need to load your own, and/or test for the element you need before referencing it.

If you want to use the jQuery that ships with LiveWhale without having to rethink what $ means, then wrap your code as follows:
 
// Place javascript code at the end of the page 
// after the jQuery loads
;(function($){
  /* code goes here, such as... */
  $(document).ready(function(){
    /* DOM ready code goes here */
  });
})(livewhale.jQuery);



Note: LiveWhale version 1.5+ ships with jQuery version 1.10.2 
eb8f96c071020d8b0923da726d6cab65@livewhale.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete?b_id=4256