Re: Trying to access a instance in javascript

Posted by Hank Ratzesberger on
URL: https://discuss.orbeon.com/Trying-to-access-a-instance-in-javascript-tp43423p43425.html

Hi Srikanth,

If you are trying to solve the "insert into empty node" problem the 
article mentions, then you may want to look at the XForms 1.1 
insert patterns that also solve this problem with an "context" 
attribute: 

http://www.w3.org/TR/xforms11/#insert-delete-patterns

Otherwise, OF keeps the instance on the server, not in an 
object available directly to JavaScript.  You can pass an 
instance to JavaScript by serializing it and then parsing 
it into a DOM object.  There are some examples in the 
list archives as well as insert examples.

HTH,
Hank


On May 14, 2009, at 9:54 AM, Srikanth A wrote:

Hello All,

 

Can we get instance value using javascript as mentioned in this url

 

http://www.ibm.com/developerworks/xml/library/x-xformsjavascript/index.html

 

I have tried it but it did not display values.

 

Thanks,

Srikanth A


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







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