RE: Re: xform:setfocus for redirecting the page
Posted by
Alessandro Vernet on
URL: https://discuss.orbeon.com/xform-setfocus-for-redirecting-the-page-tp42966p42969.html
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