Ok, finally got this to work by modifying the submitForm function so
that it gets my submit button element and focuses on it. I'm still not
happy with this implementation because it is not generic. Currently it
requires every form where I want the keyboard to close to have an
anchor button called "submitButton". Ideally I'd like to be able to
have my own javascript code that the iui submit looks for so that I'm
not hacking the iui files.
Here are the relevant changes in case it helps anyone (this is
certainly not the ideal way, but it works for now):
In my form I have a button named "submitButton":
<a class="whiteButton" id="submitButton" type="submit" href="#">Login</
a>
In iui.js I added this to the top of the submitForm(form) function:
var submitButton = document.getElementById("submitButton");
if ( submitButton != null ) {
submitButton.focus();
}
David
On Nov 27, 4:28 pm, David Ethell <
deth...@gmail.com> wrote:
> Here's what I'm trying and it doesn't work yet. Inside the <form> tags
> I have a SELECT tag with style of display:none. I gave it an id of
> "dummyField". Then I modifiediui.js so that the form.onsubmit