How does one use the xforms-ready event in a submission?
I notice that the recent blog entry about multi-language switching mentions it (http://www.orbeon.com/blog/2006/08/29/xforms-tip-dynamic-language-switching/), but doesn't show a source code example. I've tried a number of different things, but I can't get it to work.
Thanks,
Jay -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Jay,
You don't use xforms-ready in a submission, but you can perform a submission upon receiving the xforms-ready event! This is really easy: <xforms:send ev:event="xforms-ready" submission="my-submission"/> This is typically used to load some initial instance data, as an alternative to xforms:instance/@src. A submission is more powerful than xforms:instance/@src since it can perform POST, PUT, and soon (XForms 1.1) set headers and other aspects an HTTP request. -Erik Jay Klehr wrote: > How does one use the xforms-ready event in a submission? > > I notice that the recent blog entry about multi-language switching > mentions it > (http://www.orbeon.com/blog/2006/08/29/xforms-tip-dynamic-language-switching/), > but doesn't show a source code example. I've tried a number of > different things, but I can't get it to work. > > Thanks, > > Jay Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Sounds perfect Erik, thanks. I'll give it a shot soon.
Jay ________________________________ From: Erik Bruchez on behalf of Erik Bruchez Sent: Wed 8/30/2006 4:59 PM To: [hidden email] Subject: Re: [ops-users] xforms-ready submission Jay, You don't use xforms-ready in a submission, but you can perform a submission upon receiving the xforms-ready event! This is really easy: <xforms:send ev:event="xforms-ready" submission="my-submission"/> This is typically used to load some initial instance data, as an alternative to xforms:instance/@src. A submission is more powerful than xforms:instance/@src since it can perform POST, PUT, and soon (XForms 1.1) set headers and other aspects an HTTP request. -Erik Jay Klehr wrote: > How does one use the xforms-ready event in a submission? > > I notice that the recent blog entry about multi-language switching > mentions it > (http://www.orbeon.com/blog/2006/08/29/xforms-tip-dynamic-language-switching/), > but doesn't show a source code example. I've tried a number of > different things, but I can't get it to work. > > Thanks, > > Jay Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws winmail.dat (5K) Download Attachment |
Free forum by Nabble | Edit this page |