Re: Re: two way js communications between parent and iframe content
Posted by SparkyII on Mar 03, 2011; 2:38pm
URL: https://discuss.orbeon.com/two-way-js-communications-between-parent-and-iframe-content-tp3192702p3333465.html
Thanks for your reply.
Essentially, I've created a multipart form using the form builder. What I would like to be able to do is, after a successful database update, reload the form so that the recently added data is displayed in the form. The easiest way to do that is to simply click the button which loads the data in the xforms:action ev:event="xforms-submit-done" section of the database update.
I thought adding something like:
<xxforms:script>
try
{
ORBEON.util.Dom.getElementByTagName(ORBEON.util.Dom.get(id),
"view-control").click();
}
catch(err)
{
alert(err);
}
</xxforms:script>
Might do it, but it doesn't seem to work. I couldn't find any documentation on the ORBEON.util.Dom namespace either.
I'd just like to see a minimal reference example of the above working.
Many thanks,
Sparks