search for: listline1

Displaying 4 results from an estimated 4 matches for "listline1".

Did you mean: listline0
2006 Apr 08
1
How To ??? change class of DIV
...;'m almost there ;-) I''m about to set off on the last stage and would appreciate any advice that would set me off in the right direction. On the page, each record is represented by a <div>. Each <div> has id = "item#{record.id}" with class = either Listline0 or Listline1 which are defined in my stylesheet to be of different colors. Each <div> three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the item. When the link gets used, the record gets deleted from the db and the <div> gets deleted from the...
2006 Apr 10
2
RJS newbie - need help with iterating / existence test
...an item is removed from the page, it messes up the green-bar effect. So I need to iterate through the <div>s, changing their CSS class. I''ve got the change to class working (thanks to help from Ed Frederick) on a single item with: page << "$(item3).className = ''Listline1'';" (In figuring this out, I''m entering 3 items, deleting the 2nd, then changing the class of item3 which is now 2nd in the list) So now I to figure out how to iterate through the remaining items, either by starting at the top or working from the deletion point down. In eit...
2007 Feb 17
5
render collection with index
Is there any method for getting the current iteration (for changing row colors) in the category partial? <%=render(:partial => "category", :collection => @categories)%> thanks, andy -- Andrew Stone --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post
2006 Mar 01
5
scaffold.css and Rails tutorial problem
...xplanation ul li { font-size: 12px; list-style: square; } /* START:css */ .ListTitle { color: #244; font-weight: bold; font-size: larger; } .ListActions { font-size: x-small; text-align: right; padding-left: 1em; } .ListLine0 { background: #e0f8f8; } .ListLine1 { background: #f8b0f8; } /* END:css */ #----------------------------------------------------------------------------- The code in app/views/layouts/store.rhtml produces this in the browser display: #----------------------------------------------------------------------------- <!-- app/...