This content has been marked as final.
Show 2 replies
-
1. Re: How to use the jQuery funtion?
nbelaevski Feb 16, 2009 1:52 PM (in response to dxxvi)Hello,
I guess the problem happens because jQuery script itself isn't loaded on the page. Add<a4j:loadScript src="resource:///org/richfaces/renderkit/html/scripts/jquery/jquery.js" />
-
2. Re: How to use the jQuery funtion?
ronanker Apr 29, 2009 8:16 AM (in response to dxxvi)just a remark, because i had a bug with this...
if you use the load strategy ALL, then jQuery is automatically included and the line<a4j:loadScript src="resource:///org/richfaces/renderkit/html/scripts/jquery/jquery.js" />
will cause a problem (i think some king of internal plugins to jQuery are lost...)
I use jQuery in my scripts and when i'm in dev mode i change the load strategy to be able to see readable javascript when debugging.
so to force the inclusion of jQuery i prefer using :<!-- <rich:jQuery selector="document" query="ready(function(){ })"/> -->
in the head. this way, no more problems.