Re: Re: Re: Newbie - Rails 3 lightbox?

Walter Davis
Thu, 11 Nov 2010 15:21:58 -0000

On Nov 11, 2010, at 10:11 AM, Marnen Laibow-Koser
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> Walter Davis wrote in post #960734:
>> That looks cool, but it uses a LOT of really non-standard HTML.
>> (Validate their demo page for a study in angry-looking error icons
>> over at W3.) I am still wishing for one of these that doesn''t
use made-
>> up attributes on the A or IMG to communicate the metadata for the
>> popup.
>
> Actually, made-up attributes are often the best way to do this.
I''m an
> HTML validation Nazi, but I''m perfectly happy to use extra
attributes
> like these -- the nice thing about HTML is that unknown attributes
won''t
> break anything, and they prevent you from having to mix JS into your
> HTML.
>
>> I have the start of such a thing, but I haven''t had time to
>> really flesh out its support for non-image media.
>
> Where do you put your metadata?

I use the a:title, the a:class, the a:rel, the img:class and the img:alt.
I''m also thinking about the img:src to encode geometry for Flash and
other plugin content. I haven''t added support for non-image media types
yet, though.

Walter


>
>>
>> Walter
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at