I have the following code to show a login form using AJAX:
page.replace_html “login-form”,(render :partial =>
page.replace_html “login_top_form_link”, link_to_hide_top_login_form
The code works well in FF and Opera, the field user_email gets the focus
but in IE I get an error:
“Can’t move focus to the control because is invisible, not enable, or of
a type that does not accept the focus”
I could get a solution to verify if the page[“user_email”] can get the
focus and ignore that behavior on IE, but I don’t know how.
Another question: can I get the type of browser inside an RJS template?
unfortunatly many people still use IE