I am using

<% form_remote_tag  :url => "/users", :method => :post do %>

for a form, which displays fine, but the text input fields do not get
focus.
My input field is

<input  name="user[name]"  type="text" autocomplete="off" />

The form is being displayed from a <div> that is initially hidden, but
then displayed
from a dropdown menu selection.

I do not get this error if the form is just displayed on the page
without the
javascript.

Here is the js for displaying the form and background img, hiding 2
nav buttons, and hiding the dropdown, and demoting the z-index:

function showForm(formID, bkgrndID, idDD, znav, nav1, nav2) {
        var f = document.getElementById( formID );
        var b = document.getElementById( bkgrndID );
        var h = document.getElementById(idDD + '-ddheader');
        var c = document.getElementById(idDD + '-ddcontent');
        var n1 = document.getElementById(nav1);
        var n2 = document.getElementById(nav2);
        var z = document.getElementById(znav);
        clearInterval(c.timer);
        h.timer = setTimeout(function(){ddCollapse(c)},50);
        f.style.visibility = 'visible';
        b.style.visibility = 'visible';
        n1.style.visibility = 'hidden';
        n2.style.visibility = 'hidden';
        if (z)
                z.style.zIndex="1";
}

The perplexing thing to me is why the submit button gains focus but
the
text input fields do not.

Jet
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to