Hi Frederick,

As I mentioned to Colin,  I would start a new thread on this question,
which is at
http://groups.google.com/group/rubyonrails-talk/tree/browse_frm/thread/d0ca35d39de37478/cd6ed92bd974e311?rnum=1&_done=%2Fgroup%2Frubyonrails-talk%2Fbrowse_frm%2Fthread%2Fd0ca35d39de37478%3F#doc_cd6ed92bd974e311

Thanks for looking into my problem.

But I just noticed that there is another response on this thread.

> button_to_function creates a form, which would result in a form nested inside 
> a form, which isn't allowed.

Wow.  As I mentioned on the other thread,  I posted code on that
seemed clean from a Rails perspective and from an HTML perspective.

So, if button_to_function is inappropriate for forms,  can I specify
an image that, when clicked, would toggle a page with the appropriate
id specified?  Is there an example on the web that you'd recommend?

Best wishes,
Richard

BTW, my current code, with HTML generated and Validation results is at
http://www.pastie.org/882256

On Mar 22, 7:00 pm, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Mar 22, 9:18 pm, 
> RichardOnRails<richarddummymailbox58...@uscomputergurus.com> wrote:
> > It brought up a list of vendor-names immediately under my Vendors
> > textbox, which worked great as far as I was concerned.  Then I tried
> > to turn it into a real drop-down:
> > 1.  I added style="display:none" to the div so that the drop-down was
> > hidden when the page opened
> > 2.  I added <%= button_to_function("ShowList",
> > %<page.toggle :vendor_droplist> ) %> following the text_field
>
> > Hiding the drop-down worked,  but the button failed to restore it.
> > Validating the resulting HTML revealed the a div is not permitted in
> > the scope of a form.
>
> button_to_function creates a form, which would result in a form nested
> inside a form, which isn't allowed.
>
> Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to