I'm mostly using programming languages like Scala and JavaScript. I'm trying to understand the similarities and differences in how async reactive programming is used in both languages. Can you help me?  I'm not taking any particular Js Pr...
Been digging at this for a while, and I can't seem to find a way to resize a window using scalatest plus.  The only method I've found searching online or the documentation at http://doc.scalatest.org/2.1.5/index.html#org.scalatest.selenium.We...
I need to evaluate this function in Javascript from Scala/Java  function hello(a, b) {     return a+b; }   I did this basic code:  val factory = new ScriptEngineManager(null) val engine = factory.getEngineByName("JavaScript")  val body =   &#...
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've been writing d3 code that ends up having lots of functions like this:  selection.attr('x', function(d) { return d.layout.x; });   Is there any way to simulate Scala's placeholder syntax, which would allow me to write this:  sele...
I need to build a js file from sjsir files at runtime to implement a system of plugins, so that it can't be done at compile time with the rest of my compilation. I used to implement the same process in 0.6.3 with the following code, but it seems...
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 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...
I know this is very much a noob question...  I see lift provides utilities methods to generate javascript commands. I want to do the equivalent of:  JsIf((JsEq(ValById("disable-production"),JsTrue) || JsEq(ValById("disable-production"...
I've set a cookie in Scala similar to the following:  val cookies:Seq[Cookie] = new Seq() val nDaysExpire:Int = 2000 val nSecondsExpire:Int = nDaysExpire * 24 * 60 * 60 val cookie:Cookie = new Cookie(sCookieID, sValue, Option(nSecondsExpire)) coo...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.