Replies Back to Article

Alternate Row Colors

Selecting the TR tag
June 12, 2003 by Kenny Darcy
Firstly Thank You for a great extension, just a quick question, when I select the TR tag that is going to be repeated I find when I try to apply your extension it jumps and applys the code to the table that the tr is nested in, am I doing something wrong or is this common to happen every so often.


Regards

Kenny
RE: Selecting the TR tag
June 12, 2003 by Paul Taylor

Thanks for your kind comments, Kenny.

This may be something I hadn't thought of! I don't tend to use tables in tables. I hadn't thought of people using table layouts, because I never do, I always put the data table inside a layer.

I'll have to look at this and check it thoroughly.

Meanwhile, I've found a bug myself. If you open a page in DW that has previously had the ARC extension added, it can't tell which of the three alternative extensions has been added. I know what to do about this, and will be re-working it for a version 2.1 a.s.a.p.

Paul

About the usage
June 14, 2003 by Ivan Halen

Hallo, Paul! Really a nice extension, expecially the extra feature OnMouseOver!

I saw that you recommend to choose the <tr> tag of the repeated row first of all, then apply the behavior: but even if I do so, on the extension's dialog screen I have to manually choose the <tr> which I'm applying the behavior... it becomes much difficult to select the right item of the array if I've got many tables and rows... is there a way to avoid this and working only with the "visually selected" row?

Still thanks for this extension!

Cannot use it. Why?
July 9, 2003 by tang stephen

I can not see and use the "Alternate Row Colour " server behaviour in my server behaviour?
Why?

RE: Cannot use it. Why?
July 10, 2003 by Paul Taylor

I'm sorry, I don't know why you can't use it. It should install into a subdirectory called Technocurve. There should be three extensions in this submenu.

If I've made an error, I'll try and correct it a.s.a.p.

Paul

RE: About the usage
September 11, 2003 by Paul Taylor

Sorry it has taken me such a long time to find your post and respond to it.

Unfortunately, I haven't found a way of making the extension select the row that one happens to be in. All I have been able to do so far is select the tr tag in the tag list at the bottom left. I don't think it's fully satisfactory, but I haven't learnt enough about extension writing yet to try to do this.

Someone asked me recently for a version of the extension using 3 repeating colors, instead of 2. Is it worth looking at that? I might have a go at it.

Fixed?
October 7, 2003 by Melissa Sanchez

Can't see it in the behaviors. Has this extension been fixed yet?

 

Mel

Brand New Version
March 10, 2004 by Paul Taylor

New Version

Many of you have been asking for a version that works on DWMX 2004. It has taken me a long time to make it, because of other work commitments, but here it is. I've also ironed out several other bugs, so I hope the new version will make the ratings increase.

Thanks
March 10, 2004 by Marcellino Bommezijn

Paul,

Great that you could make time to do this extension for MX2004.

It's in my toolbox again!!!

Thanks

Older versions available?
March 31, 2004 by Roger Paradis

Hi Paul,

I'm wondering if it's possible to obtain an older version that will work with Dreamweaver MX 6.0?   I tried installing version 3.0 of this extension, but as I would expect, "Technocurve" doesn't show up in the behaviors list.

RE: Older versions available?
April 5, 2004 by Paul Taylor

I can make an older version available for you - no problem. E-mail me off list (paul@technocurve.co.uk). I'll put the old version back on my web site, when I get around to it.

Paul

Is this possible?
April 7, 2004 by Andy Hughes

Hi Paul

What would we do without guys like you putting in the effort to help others - thank you.

I had a client who not only wanted the table bg alternate, but also the text colour. Is this possible? and if so, are there any plans in the future to ad this function?

Thanks Again

Andy

 

RE: Is this possible?
April 7, 2004 by Paul Taylor

What a good idea! I hadn't thought of that. I'll work on it, for a version 3.1. Don't hold your breathe, though! I'm quite a busy IT trainer.

In the meantime, if you look at the code, after adding the ARC extension, you will find that it has defined the background color by CSS style. If you simply ad an extra style for foreground color (style="background-color:#444444;color:#999999;") you should be able to achieve the effect you want.

Paul

Template Issues
April 8, 2004 by D Hood

Great idea, but I can't get it to work in conjunction with templates.  I get the message saying that it would alter code that's part of the template and discards the change.

Any ideas?

Thanks.

RE: Template Issues
April 8, 2004 by D Hood

Scratch that, I changed the TR[#] and all is well.

Great work, Paul!!!

D Hood

IT works!!!!
August 2, 2004 by Darren Bovis-Coulter
Thanks so much... this has to be the easiest thing I have done!!! I am a complete newbie to PHP MySQL and all things crazy like getting page numbers at the bottom of a results page, but I am getting to the prettying stage now and this script has saved me buckets of time.... thank you... thank you!!!
RE: IT works!!!!
August 3, 2004 by Paul Taylor

Thanks for these encouraging words. I'm fairly new to this business of extension writing, so I'm still rather surprised when it all works. I don't get a great deal of time to revisit the extensions, and frequently bugs that people point out get left uncorrected for long periods of time.

Extensions are fun to do, though.

What a time saver
September 23, 2004 by Steve Funk

How awesome. I could have hand coded a bunch of different table with different color schemes, but this saved me a bunch of time.

Thanks

Steve

Good Extensions - Encountered Problem and Fixed
September 24, 2004 by Michael Vaughan

Thanks for the extension Paul,

I ran into an oddity using this extension where I had one page display the alternating rows correctly, then another page where nothing happened (no error or anything just the dynamic table text) however it had the exact same source.  Viewing the first working page source showed this:

<tr  style='background-color:#FFFFCC'>

I modified the second page response.write line to this (the only change to that page):

Response.Write(" bgcolor=" & myColor &"")

And now am getting a page source which displays correctly and is showing this for the background attribute:

<tr  bgcolor="ffffcc">

So I guess my question is:  Is style='background-color:#XXXXXX'> not always displayed correctly in IE 6?  Or am I doing something wrong?  When I copied and pasted the "incorrect display" page into DW it displayed fine.  The second page alternating row has 3 columns if that makes a difference.

I hope this makes sense.

Thanks,

Mike

RE: Good Extensions - Encountered Problem and Fixed
September 24, 2004 by Michael Vaughan

Code correction:

<tr  bgcolor="ffffcc">

RE: RE: Good Extensions - Encountered Problem and Fixed
September 24, 2004 by Michael Vaughan

Remove quotes from above - the posting system added them.

RE: RE: RE: Good Extensions - Encountered Problem and Fixed
September 25, 2004 by Paul Taylor

I'm glad you're work-around works. I'm not sure why you got an erroneous message. The style system I used is supposed to be cross-browser compatible. At least it is valid standards-compliant code!

As you may be aware, bgcolor is a non-valid attribute for tr tags. So your workaround wouldn't work if you were using the strict doctype for either html or xhtml.

Paul

awesome
March 28, 2005 by Aron K
this extension rocks!!! thanks dude!
DW 8?
November 4, 2005 by Paul Taylor
Has anyone tried installing this extension into DW 8? I am no longer an IT developer, and haven't got round to purchasing DW8.
Thanks!
February 8, 2008 by Scott B
Hey, thanks alot Paul.  This is truly a great tool.  Really saved me alot of time, I love the fact that it works with dynamic tables as well.
Can't see the Technocurve submenu
July 1, 2009 by Tom Meijer

Hi I'm working with Dreamweaver CS3 on a MAC and when I'm trying to add a behaver the Technocurve submenuis not there. I can see the extention in the Extention Manager. 

 Thanks

Oren

Works Great In CS3
November 12, 2009 by Mark Smith

Thanks Paul - Great Job. I appreciate this extension. Help me in a pinch. You need to start teaching and passing on your skills.