Using form_remote_tag, setting the form name

I’m using form_remote_tag like this:

<%= form_remote_tag
:update => “div_id_dataentry_bottom_ajax”,
:loading => “document.getElementById(‘wait’).innerHTML=‘Loading…’;”,
:url => { :action => “dataentry_bottom_edit” } %>

And it makes this code:

How do i get it to set the name tag, so i can do some javascript???
Like this:

<form name="xxx" ...

Cheers, you guys are awesome.

I believe you want:

form_remote_tag :html => {:name => ‘my_name’}, :update => …

Bob S.
http://www.railtie.net/

Bob S. wrote:

I believe you want:

form_remote_tag :html => {:name => ‘my_name’}, :update => …

Bob S.
http://www.railtie.net/

I worship at your feet…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs