Hi all,
I was wondering which version of javascript we were allowed to use in 'xxforms:script' markups. Apparently, 1.7 features (generators, iterators, array comprehensions) aren't supported : is there nevertheless a way to put them to work ? I also remember a blog post by Erik about CoffeeScript : how far has it got ? (I have a "Unsupported script type: text/coffeescript" error when trying the coffeescript-mergesort.xhtml sample in the xforms-sandbox...) Thanks, -- Grégoire Neuville -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Grégoire,
JavaScript in xxforms:script is sent to the client by default. So the answer is whatever the browser supports. There is some very experimental code using runat="server" on xxforms:script (or xxforms:action with a type attribute) which does runs JavaScript server-side, but this is not fully implemented yet. In particular, there is no complete/solid API available. See: https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/action/actions/XFormsActionAction.scala https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/action/actions/XXFormsScriptAction.scala https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/script/ScriptInterpreter.scala https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/script/ServerScript.scala -Erik 2011/12/1 Grégoire Neuville <[hidden email]>: > Hi all, > > I was wondering which version of javascript we were allowed to use in > 'xxforms:script' markups. Apparently, 1.7 features (generators, > iterators, array comprehensions) aren't supported : is there > nevertheless a way to put them to work ? > I also remember a blog post by Erik about CoffeeScript : how far has > it got ? (I have a "Unsupported script type: text/coffeescript" error > when trying the coffeescript-mergesort.xhtml sample in the > xforms-sandbox...) > > Thanks, > -- > Grégoire Neuville > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks for the info !
On 7 December 2011 08:26, Erik Bruchez <[hidden email]> wrote: > Grégoire, > > JavaScript in xxforms:script is sent to the client by default. So the > answer is whatever the browser supports. > > There is some very experimental code using runat="server" on > xxforms:script (or xxforms:action with a type attribute) which does > runs JavaScript server-side, but this is not fully implemented yet. > In particular, there is no complete/solid API available. See: > > https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/action/actions/XFormsActionAction.scala > https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/action/actions/XXFormsScriptAction.scala > https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/script/ScriptInterpreter.scala > https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/xforms/script/ServerScript.scala > > -Erik > > 2011/12/1 Grégoire Neuville <[hidden email]>: >> Hi all, >> >> I was wondering which version of javascript we were allowed to use in >> 'xxforms:script' markups. Apparently, 1.7 features (generators, >> iterators, array comprehensions) aren't supported : is there >> nevertheless a way to put them to work ? >> I also remember a blog post by Erik about CoffeeScript : how far has >> it got ? (I have a "Unsupported script type: text/coffeescript" error >> when trying the coffeescript-mergesort.xhtml sample in the >> xforms-sandbox...) >> >> Thanks, >> -- >> Grégoire Neuville >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- Grégoire Neuville -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |