ok...i figured it out. i added the following to the change_llist_results.html template and it worked like a charm:
{% for result in results %} <script type="text/javascript"> $(document).ready(function(){ var column = 12 $('img[alt="1"]').parent().filter('td:nth-child('+ (column) +')').parent().css("background","#9FFF9F"); }); </script> <tr class="{% cycle 'row1' 'row2' %}">{% for item in result %}{{ item| truncatewords_html:3 }}{% endfor %}</tr> {% endfor %} On Mar 16, 8:58 am, "Blake M. Sisco" <blake.si...@gmail.com> wrote: > one thing that i should point out is that the column is "prettified" so it > uses the "on" image instead of the value of the db field. don't know if > this makes a difference or not cuz the value is the img alt. > Blake M. Sisco > LOR Manufacturing Co., Inc > Web Presence • Graphic Designwww.lormfg.com > (866) 644-8622 > (888) 524-6292 FAX > > The information transmitted by Blake Sisco herewith is intended only for the > person or entity to which it is addressed and may contain confidential > and/or privileged material. Any review, retransmission, dissemination or > other use of, or taking of any action in reliance upon, this information by > persons or entities other than the intended recipient is prohibited. If you > received this in error, please contact the sender and delete the material > from any computer > > On Mon, Mar 16, 2009 at 8:55 AM, Blake M. Sisco <blake.si...@gmail.com>wrote: > > > ok....my jquery knowledge is severely lacking and I can't figure out how > > the heck to get this to work...i've spent the last 2+ hours on it :-/ Could > > you give me an example of how i would set this up? > > Blake M. Sisco > > LOR Manufacturing Co., Inc > > Web Presence • Graphic Design > >www.lormfg.com > > (866) 644-8622 > > (888) 524-6292 FAX > > > The information transmitted by Blake Sisco herewith is intended only for > > the person or entity to which it is addressed and may contain confidential > > and/or privileged material. Any review, retransmission, dissemination or > > other use of, or taking of any action in reliance upon, this information by > > persons or entities other than the intended recipient is prohibited. If you > > received this in error, please contact the sender and delete the material > > from any computer > > > On Mon, Mar 16, 2009 at 6:43 AM, Blake M. Sisco > > <blake.si...@gmail.com>wrote: > > >> Malcom, > >> awesome i'll give it a try this morning and let you know how it > >> worked....thanks a ton > > >> Blake M. Sisco > >> LOR Manufacturing Co., Inc > >> Web Presence • Graphic Design > >>www.lormfg.com > >> (866) 644-8622 > >> (888) 524-6292 FAX > > >> The information transmitted by Blake Sisco herewith is intended only for > >> the person or entity to which it is addressed and may contain confidential > >> and/or privileged material. Any review, retransmission, dissemination or > >> other use of, or taking of any action in reliance upon, this information by > >> persons or entities other than the intended recipient is prohibited. If > >> you > >> received this in error, please contact the sender and delete the material > >> from any computer > > >> On Fri, Mar 13, 2009 at 8:05 PM, Malcolm Tredinnick < > >> malc...@pointy-stick.com> wrote: > > >>> On Fri, 2009-03-13 at 15:39 -0400, Blake M. Sisco wrote: > >>> > Here's my problem. I have set up a django app for my company to make > >>> > it easier for our warranty manager to track warranties. It's working > >>> > great (it's the first thing I've done w/ django and I love it) with > >>> > one exception. I have a boolean field (recieved_vendor) in my > >>> > warranty model that, when checked, needs to modify the row color in > >>> > the change_list view so he knows that we have received the product > >>> > back from our vendor. I've been through everything (docs, groups, > >>> > irc) that I can think of, all to no avail. I apologize if this is a > >>> > very noobish question, but hey, I'm a relative django virgin here. > >>> > Any help or insight you guys/gals could give would be greatly > >>> > appreciated... > > >>> Out-of-the-box, this isn't an option that exists. > > >>> However, it wouldn't be particularly tricky to implement with something > >>> like jQuery or other preferred Javascript library of choice: when the > >>> document DOM is ready, iterate through the rows in the table and change > >>> the CSS property on the tr element if the boolean widget is checked. In > >>> jQuery it's just about a one-line, in fact. > > >>> Regards, > >>> Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---