Developer guides

jQuery vs. Prototype

OmCore uses the Prototype javascript framework (along with the Scriptaculous library for animation) throughout it’s modules to provide advanced functionality for front-end features. Both Prototype and jQuery have a conflicting use of the $ symbol as a function name. If you use jQuery in your template this conflict will cause Prototype to stop working. To overcome this you must return control of $ back to Prototype with a call to $.noConflict().

For example:

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
  $.noConflict();
</script>

For more information: http://api.jquery.com/jQuery.noConflict/

Is this page incomplete?

This documentation is in development.
If you cannot find what you are looking for then please contact us and we will try and prioritise the content for you.