RE: RE: Re: xform:setfocus for redirecting the page

Posted by Prameela R on
URL: https://discuss.orbeon.com/xform-setfocus-for-redirecting-the-page-tp42966p42970.html

Hi Alex,

            <xforms:action ev:event="xforms-model-construct-done">//(or
xforms:ready)
               
                <xxforms:script>alert("Did
run!")</xxforms:script><xforms:load
resource="http://localhost:8080/web/guest/home" />
            </xforms:action>

Able to get the alert but not xforms:load working under initializing events.

Prameela.
-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: Tuesday, March 17, 2009 10:35 PM
To: [hidden email]
Subject: [ops-users] RE: Re: xform:setfocus for redirecting the page


Prameela,


Prameela R wrote:
>
> Yes it works with DOMActivate.
>

OK, good.


Prameela R wrote:
>
>      <xforms:load> directly with xforms ready is not working. It works
> with
> DOM FocusIn So we are trying to set focus on a control .Even I tried with
> the event xform-focus.But it didn't work. I just want to allow the user to
> add details if he is logged in else redirect to Login page.
>

I am wondering if this is because there is a problem with an ID, or because
the script sent by the server to the browser to be executed when the page
loads isn't running. Could you try to put the following action in the
xforms-model-construct-done (or xforms-ready): <xxforms:script>alert("Did
run!")</xxforms:script>. Do you see the message "Did run!" when the page
loads?

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context:
http://www.nabble.com/xform%3Asetfocus-for-redirecting-the-page-tp22510238p2
2563699.html
Sent from the ObjectWeb 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