Login  Register

Re: javascript integration

Posted by Erik Bruchez-3 on Dec 02, 2009; 2:41am
URL: https://discuss.orbeon.com/javascript-integration-tp932586p932708.html

Mats,

The answer is yes.

It is correct that Orbeon Forms does not support these functions from JavaScript.

One reason, obviously, is the hybrid client-server architecture.

Another one is that Orbeon Forms is designed so that your stuff stays secure on the server, and transparent access to your instance data is currently not allowed.

We do have some JavaScript support though, see:
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-extensions#TOC-JavaScript-Integration

We use these functions and xxforms:script in XBL controls to provide XForms/JavaScript integration, and that has worked pretty well so far. We would like to have some slightly higher-level functions. That should come in the future.

-Erik

On Tue, Dec 1, 2009 at 2:03 PM, Mats Eklund <[hidden email]> wrote:
Hi,

I'm thinking of migrating a solution that currently uses a client-side javascript implementation of xforms onto orbeon. My solution uses javascript extension at some points to do things such as reading out instance data and transforming it with xslt (sarissa) and outputting resulting markup at some location in the document, or to modify/update instance data in the xforms model. For this I use the getInstanceDocument() and the recalculate(), revalidate(), refresh(), rebuild() functions. However, Orbeon doesn't seem to support these functions. Is this right? Does Orbeon offer any alternative mechanisms to this kind of stuff?

Thanks,
Mats



--
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