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?

Answers


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


Need Your Help

Network Flow Graph all possible path

graph network-flow

How to find all the possible paths from source(S) to sink(S) in a directed graph?

Using `split` on columns too slow - how can I get better performance?

python performance pandas split

I've a dataset (around 10Gb) of call records. There's column with ip addresses that I want to split into four new columns. I'm trying to use:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.