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 am currently reorganizing a Play! project where there is a lot of JS code in the HTML template files. This code should be moved to external JS files for better readability and faster page loading times. However, when I just create a JS file in the...
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...
As shown in the code sample below I want to compare a javascript element inside a scala helper element. However it always returns false even when the element "abcde" is present. How can I get the javascript value inside the scala helper eleme...
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 new to web development. My job is to get data from the server and plot them using amcharts every 1 or 2 seconds.   This is what i have so far:  <form id="getdata" role="form" method="post" [email protected]
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.