--- Erik Bruchez <[EMAIL PROTECTED]> wrote: > Right now, the XForms instance is only available in an encoded way on > the client, so you can't do it just that way. You will probably have to > modify the instance server-side. Maybe your JavaScript code can just > perform a submit with the information needed?
Anindita, As Erik is saying, the instance is encoded when it gets to the browser and it is not directly accessible to JavaScript. I don't know what kind of modification you want to do on the XForms instance, but quite often we want to set the content of a node (element of attribute) in the instance from JavaScript. The "trick" is to have an XForms hidden control in your view bound to the node you want to modify from JavaScript. You assign an id to the control with the xhtml:id attribute and then use it from JavasScript. This is explained at the very bottom of the XForms Reference (in the "Hidden Fields" section): http://www.orbeon.com/ois/doc/reference-xforms Alex ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
