Re: [Xsltforms-support] Change instance via JavaScript?
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2011-11-06 22:46:48
|
Hello Steve, > I have an XForm in one page which I would like to update from > either a second page hosted by an iframe within the first, > or from a popup opened by the page. > > I need to change an instance value in the parent form. I can > activate an xforms:trigger from an external page, but have not > been able to see how to set the value with which to update the > instance. > > So, I thought maybe updating the instance directly and then > rebuild/refresh would work, but with that approach I can get > as far as updating the nodeValue and then the rebuild/refresh > does not update the display. > > What I would like to do is the kind of thing exemplified by > some sample code (snarfed from the net) which is at: > > http://oracc.museum.upenn.edu/p2/changeme.xml > > Any ideas? Modifying an instance with Javascript instructions is always problematic because of dependencies to be set for refresh. It could also be very specific of a version of en implementation... Maybe the best way would be to just define an extension for submission: instead of "http:" or "file:", "javascript:" could be used to retrieve a string from a Javascript instruction. You could then externally activate a submit action for it. What do you think? Thanks! -Alain |