I don't know what happens when you remove the other AJAX frameworks. I simply
added jQuery to default.jsp in decorators folder.
<script type="text/javascript" src="<c:url
value='/scripts/jquery-1.2.6.pack.js'/>"></script>
<script>jQuery.noConflict();</script>
The jQuery.noConflict instruction is important when you want to keep the
other AJAX frameworks.
Note, that afterwards you have to address further instructions by 'jQuery'
instead of '$'. Here is an
example of how I use jQuery in my JSP pages.
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.ohmy').hide();
jQuery("more").click(function () {
jQuery("div.ohmy").toggle();
})
})
</script>
Cheers,
Martin
--
View this message in context:
http://www.nabble.com/how-to-use-jquery-replace-prototype--tp19407400s2369p19409629.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]