Replies Back to Article
Alternate Row Colors

Regards
Kenny

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
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!
I can not see and use the "Alternate Row Colour " server behaviour in my server behaviour?
Why?

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

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.
Can't see it in the behaviors. Has this extension been fixed yet?
Mel

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.

Paul,
Great that you could make time to do this extension for MX2004.
It's in my toolbox again!!!
Thanks
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.

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
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

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
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.
Scratch that, I changed the TR[#] and all is well.
Great work, Paul!!!
D Hood

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.
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
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
Code correction:
<tr bgcolor="ffffcc">
Remove quotes from above - the posting system added them.

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

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
Thanks Paul - Great Job. I appreciate this extension. Help me in a pinch. You need to start teaching and passing on your skills.