I am doing a project using play framework.
After clicking some link for example "show" then for example car.show(55) is being called and in car.show some db query is being performed. then list operation is being done.
What I am trying to do is, call removegivencar function from java script file.
I mean,
when all cars are listed in html file. I will call a js function with the id of that car.
For example: Remove My Car
and I would like to call car.removegivencar function in js instead of html
Because I have an id of the car. I should do @{car.removMyOwremovegivencar(mycar.id)} operation...
I tried
function removeMyCar(id)
{
window.location="@{car.removMyOwremovegivencar(id)}";
}
or window.location="@{car.removMyOwremovegivencar(" + id + ")"
etc. but could not do it :((( please drive me on this issue...