Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PushTarget to fire clientside events #5

Open
uklance opened this issue Jun 17, 2012 · 4 comments
Open

PushTarget to fire clientside events #5

uklance opened this issue Jun 17, 2012 · 4 comments

Comments

@uklance
Copy link
Owner

uklance commented Jun 17, 2012

Provide a javascript hook for to fire custom code when

  • Subscription started
  • Message received
  • Subscription stopped
  • Errors

Requires #43 to stop, restart.

@anibali
Copy link

anibali commented May 7, 2013

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
Copy link
Owner Author

uklance commented May 7, 2013

You can use the AjaxResponseRenderer to fire your javascript

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

@anibali
Copy link

anibali commented May 7, 2013

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
Copy link
Owner Author

uklance commented May 8, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants