rubyonrailsin

A Ruby and Rails talk

Monday, March 22, 2010


[Rails] Re: How to initially hide a drop-down control and have an image control make it visible

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Hey Colin,

Your "how's the HTML" question really did the job:
<div> tag not allowed within the scope of a <form> tag.

Which means the my .erb can't have:

<% form_for(@expense) do |f| %>
[snip]
<div id="vendor_droplist" style="display:none">
<%= select_tag "test",
options_for_select(@current_vendors.collect { |v|
v.nickname }),
{:multiple => true} %>
</div>

More importantly to me, it means that:

<input onclick="page.toggle :vendor_droplist;" type="button"
value="ShowList" />

won't work inside that form.

I'm going to post a new question on how to fix this while I scour the
documentation to figure it out myself.

Again, thank you for sharing your expertise with me,
Richard


On Mar 21, 10:18 am, Colin Law <clan...@googlemail.com> wrote:
> On 21 March 2010 10:49, RichardOnRails
>
> <RichardDummyMailbox58...@uscomputergurus.com> wrote:
> > Hi Colin,
>
> > Your "check the HTML" tip is *great* ... it's now in my debugging
> > arsenal.
>
> Another tip is to install the Html Validator add-on to Firefox and it
> will automatically validate your pages as you develop, this often
> shows up the reason why something is not working as you expect.
>
> Colin


On Mar 21, 10:18 am, Colin Law <clan...@googlemail.com> wrote:
> On 21 March 2010 10:49, RichardOnRails
>
> <RichardDummyMailbox58...@uscomputergurus.com> wrote:
> > Hi Colin,
>
> > Your "check the HTML" tip is *great* ... it's now in my debugging
> > arsenal.
>
> Another tip is to install the Html Validator add-on to Firefox and it
> will automatically validate your pages as you develop, this often
> shows up the reason why something is not working as you expect.
>
> Colin

--
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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive