uklance / tapestry-cometd

A push library for Tapestry5 based on CometD
17 stars 3 forks source link

PushTarget to fire clientside events #5

Open uklance opened 12 years ago

uklance commented 12 years ago

Provide a javascript hook for to fire custom code when

Requires #43 to stop, restart.

anibali commented 11 years ago

Has any progress been made on this? I'd really like to be able to write some Javascript so that I can automatically scroll down to the latest chat message and so forth. If not, is there a workaround?

uklance commented 11 years ago

You can use the AjaxResponseRenderer to fire your javascript

https://github.com/uklance/tapestry-cometd/wiki/Pushing-javascript-to-the-client

anibali commented 11 years ago

Ah, I must of missed that page - thanks for the prompt response. Great work by the way, I couldn't believe how easy it was to to get started with your library!

uklance commented 11 years ago

Glad you found it simple. The idea was for the framework to do all the nasty stuff so that you could concentrate on writing tapestry-like code and templates.