javascript version in xxforms:script

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

javascript version in xxforms:script

Grégoire Neuville
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
Reply | Threaded
Open this post in threaded view
|

Re: javascript version in xxforms:script

Erik Bruchez
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: javascript version in xxforms:script

Grégoire Neuville
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