DrWolfe
DrWolfe

Reputation: 159

Play! 2.0 with Scala and AJAX tutorial/example

I am looking for a clean vanilla example of the play framework with ajax. I would like to build a a dependent dropdown and a chained select. All the tutorials on the web I have found uses php.

The only sample that has ajax makes use of coffee script.

Is there one out there somewhere?

Upvotes: 3

Views: 2376

Answers (1)

Samy Dindane
Samy Dindane

Reputation: 18736

You don't really need a Scala tutorial for that, you can follow the PHP ones.
The difference is that your data (responses) will be returned by Scala routes instead of PHP scripts.

To learn more about AJAX calls in Play just examine a zentasks sample delivered to you together with Play's code. There are samples for both Scala and Java versions and all you have to test them is to go to the folder of selected sample via commandline and run/start it as a common Play's application.

Preview

Upvotes: 3

Related Questions