Login  Register

Re: Re: Redirecting & Toggle issues

Posted by Erik Bruchez on Apr 16, 2011; 12:52am
URL: https://discuss.orbeon.com/Redirecting-Toggle-issues-tp3450828p3453291.html

Yes you can. You need to understand a little bit how XForms events and
actions work first.

The idea: your XForms action <xforms:load> must run upon a certain
event, maybe xforms-submit-done. Then if a condition is met, run the
action. Something like:

<xforms:action ev:event="xforms-submit-done" if="condition"
resource="URL to load"/>

-Erik

On Fri, Apr 15, 2011 at 1:08 AM, D4Ni <[hidden email]> wrote:

> Thanks for such a quick response Erik:). I will try the toggle thing.
>
> About the redirection though:
>
> I want to redirect the page automatic when the credentials are right, not
> through a link or button. Can I achieve that with the xforms: load. If yes,
> how exactly? That kind of redirection I'm interested in if it exist.
>
> When I first learned about XForms, I used a tutorial from IBM, and they
> showed the login form and all, but they didn't redirect the page, instead
> they hide it. The tutorial didn't work for me as they made it. They said in
> the tutorial that XForms has mechanisms to redirect dynamic but they didn't
> specify anything... I searched about it but didn't find anything suitable.
> Am I missing something?
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Redirecting-Toggle-issues-tp3450828p3451524.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>
>


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