> On 7/23/06, Michael Schuerig <[EMAIL PROTECTED]> wrote:
[passing information in additional, custom attributes]

On Sunday 23 July 2006 21:09, Ryan Gahl wrote:
> Just off the top of my head, I'm gonna go on a limb here and say you
> can use other means to pass this data to the js environment without
> mucking up your markup. That is assuming this is not really
> semantically relevant data, but rather some meta-information or
> application state stuff you're trying to marshal back and forth.
>
> Why not simply render javascript tags packaged with this data
> ("script" is a valid xhtml tag ya know)...

Yes, I know, but I'd like to avoid sprinkling script elements all over 
the page. In particular, when it is really just declarative data I want 
to attach to elements. An example is type/format/length information for 
use in client-side validation.

Michael

-- 
Michael Schuerig
mailto:[EMAIL PROTECTED]
http://www.schuerig.de/michael/
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to