You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/03/14 15:56:44 UTC
T5: using jQuery with PageRenderSupport
Hi,
When you use _pageRenderSupport.addScript(jsFunc) to add some javascripts,
it will always be put inside following block:
Tapestry.onDOMLoaded(function() {
... js functions added here
});
is it possible not to include javascript in the above block? if you use
jQuery, putting inside that block will not work, any idea?
--
View this message in context: http://www.nabble.com/T5%3A-using-jQuery-with-PageRenderSupport-tp16048164p16048164.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: T5: using jQuery with PageRenderSupport
Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi Kris,
Since PageRenderSupport uses DocumentHeadBuilder to write the scripts, I am
thinking of extending DocumentHeadBuilder, but it does not register:
binder.bind(DocumentHeadBuilder.class, MyDocumentHeadBuilderImpl.class);
any idea?
kristian.marinkovic wrote:
>
> replace PageRenderSupport or add another service like PageRenderSupport
> that renders JQuery specific javascript :)
>
>
>
>
> Angelo Chen <an...@yahoo.com.hk>
> 14.03.2008 15:56
> Bitte antworten an
> "Tapestry users" <us...@tapestry.apache.org>
>
>
> An
> users@tapestry.apache.org
> Kopie
>
> Thema
> T5: using jQuery with PageRenderSupport
>
>
>
>
>
>
>
>
> Hi,
>
> When you use _pageRenderSupport.addScript(jsFunc) to add some
> javascripts,
> it will always be put inside following block:
>
> Tapestry.onDOMLoaded(function() {
>
> ... js functions added here
> });
>
> is it possible not to include javascript in the above block? if you use
> jQuery, putting inside that block will not work, any idea?
> --
> View this message in context:
> http://www.nabble.com/T5%3A-using-jQuery-with-PageRenderSupport-tp16048164p16048164.html
>
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
--
View this message in context: http://www.nabble.com/T5%3A-using-jQuery-with-PageRenderSupport-tp16048164p16062067.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: T5: using jQuery with PageRenderSupport
Posted by Kristian Marinkovic <kr...@porsche.co.at>.
replace PageRenderSupport or add another service like PageRenderSupport
that renders JQuery specific javascript :)
Angelo Chen <an...@yahoo.com.hk>
14.03.2008 15:56
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>
An
users@tapestry.apache.org
Kopie
Thema
T5: using jQuery with PageRenderSupport
Hi,
When you use _pageRenderSupport.addScript(jsFunc) to add some
javascripts,
it will always be put inside following block:
Tapestry.onDOMLoaded(function() {
... js functions added here
});
is it possible not to include javascript in the above block? if you use
jQuery, putting inside that block will not work, any idea?
--
View this message in context:
http://www.nabble.com/T5%3A-using-jQuery-with-PageRenderSupport-tp16048164p16048164.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org