scriptaculous - jQuery conflict with script.aculo.us -


i include jquery 1.10, script.aculo.us , prototype in same file. shows error:

cannot call method 'click' of undefined

i suspect due library conflict, did this:

jquery(document).ready(function() {... 

and move script.aculo.us after other scripts. unfortunately shows:

uncaught referenceerror: jquery not defined

the solution in using jquery noconflict() script.aculo.us doesn't work me.

my code

{literal}     <script src="include/js/jquery-1.10.2.js" type="text/javascript"></script>     <script src="include/js/general.js" type="text/javascript"></script>      <script>         jquery(document).ready(function() { ...     </script>      <script language="javascript" type="text/javascript" src="include/scriptaculous/prototype.js"></script>     <script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script> {/literal} 

literal smarty tag.

you wrote jquery, j lower case, use jquery(document).ready(function(){...


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -