I'm using play 2.4 to make a public REST API. I added the CORS filter allowing all origins and headers.   See from application.conf:  play.filters {   # CORS filter configuration   cors {      # The path prefixes to filter.     pathPrefixes = [&#...
I want to render d3 charts on the server.  I had 3 options:  Node, Phantom, and Nashorn.    I prefer Nashorn because my API is Scala Play and I don't want to manage another process.  (deployment, load, queue, etc etc)  So now I need to get JSDom...
I load AngularJs and jQuery using RequireJs in nodeJs framework.   That is main.js      require.config({     paths: {         angular: 'vendor/angular.min',         bootstrap: 'vendor/twitter/bootstrap',         jquery: 'vendor/jq...
Does anyone know a good play plugin that automatically minifies javascript and css to attach to a production play server?  I've found this one, but I guess there are more out there:  https://github.com/greenlaw110/play-greenscript  The main probl...
I want to call a method with parameter in my java file using window.location in javascript. I've tried different approaches but not able to call the function. When I tried to print the value that I've passed it is getting logged in the consol...
I am trying to submit a form as a JSON object because I want to create a REST API with play.  The issue that I have is that Play tells me that is not a valid JSON.  My FORM code:   @(form : Form[Product]) @main("Create Form"){ @helper.form(ro...
I am trying to set up a simple application using the play framework 2.6 and scala and I can't seem to run inline javascript off my html templates. I keep getting the error:     Refused to execute inline script because it violates the following Co...
For my public files, I usually use:  @routes.Assets.at("data/table.txt")   in regular html  However, I have a javascript with the variable link  var file = "table.txt"//This changes depending on the code var link = "data/"+ fi...
Trying to get it to work without any detail knowledge of JQuery. I am really having a hard time finding an comprehensible example of how i would create an unnumbered list out of some json that i am passing to the front inside a String object.  I am u...
Play Framework provides a way to access JSON-Data in a request-body via request().body().asJson(). Using form-helpers does not post data in JSON-format.   So, what is the best way, in a play-application, to convert the form-data to a json-object befo...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.