C K Kashyap wrote:
> Hi Folks,
> Since I did not find an editable grid that suits my requirement (of
> being light weight and editable) I started writing
> my own - here's what I'm trying -
> 
> 
> A helper function like this that renders a grid -
[...]

I would suggest that you might want to put this into a couple of 
partials instead.  Or at least use content_tag.

[...]
>         table << "<td><input id=\"col_#{r}_#{c}\" style=\"border:none;\"

Why not use a class instead of an inline style?

> type=\"text\" 
> onkeydown=\"handle_keyboard(event,#{r},#{c},#{row})\"></td>"

Get your JS out of your HTML.  It belongs in a separate file.

[...]


> --
> Regards,
> Kashyap

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.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@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