Hi All,
Yet another question: I need to make Ajax calls when a page is loaded
or resized. The call would need to pass some local client information
(browser size). The return should be javascript code that populates a
div on that page (in particular: an image that is scaled on the server
to matc
(n.b. not compiled or tested, and there might be an easier way:)
class MySnippet {
def handlers(ns: NodeSeq): NodeSeq = {
val handleResize = SHtml.jsonCall(JE.JsObj("width" -> JE.JsVar
("window", "screen", "width"),
"height" ->
J