O'Reilly logo

Learning Play! Framework 2 by Andy Petrella

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic maintains form

In the previous section, we made another improvement to our application by enabling some live updates while using the dashboard, all this using a polling system that targets a dedicated action.

However, we saw that it wasn't enough to excite the "chatrumer"; indeed, each time he/she posts a message or a file, he/she will be redirected to a new page. That's not what we call a "user-friendly" interface.

Note

Chatrum: A fancy combination of chatting and forum.

Moreover, we did a very wild thing with the code, which was the hardcoding of a URL—that's so scary.

To recover our peace, and the user's, we're going to use the amazing features that Play! 2 is providing us with: a client-side router and a JavaScript version of the server-side ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required