Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Greenbar Paper and Database Results

New Here ,
Jul 13, 2006 Jul 13, 2006

Copy link to clipboard

Copied

All I need to do is alternate the color of the backround from white to gray. I really have no idea how to adjust the repeat region so that it can do this, instead I end up showing double records. I know what I'm doing wrong, I just don't know what is right.

Thanks
Troy
TOPICS
Server side applications

Views

229
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2006 Jul 13, 2006

Copy link to clipboard

Copied

On Thu 13 Jul 2006 03:49:08p, TGuthrie wrote in
macromedia.dreamweaver.appdev:

> All I need to do is alternate the color of the backround from white to
> gray. I really have no idea how to adjust the repeat region so that it
> can do this, instead I end up showing double records. I know what I'm
> doing wrong, I just don't know what is right.

For talking purposes, let's assume that you're using a table. Pseudocode:

<&script
ticker = -1
&>
<table>
<tr><th>headers go here</th></tr>
<!-- Repeat region starts here -->
<&script
ticker = -ticker
&>
<tr<&script if (ticker < 0) print " class='greyrow'" &>>
<td><&script print dataFromDatabase &></td></tr>
<!-- repeat region ends here -->
</table>

Substitute with your favorite serverside scripting language.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2006 Jul 13, 2006

Copy link to clipboard

Copied

LATEST
what language are you in?

I believe there is an extension to do this, but you can also do it with some
quick and easy hand coding.

Basically you can just setup a counting variable and see if it's divisible
by two, if it is, then you need to change the color to your secondary color.
If it's not, then you write your primary color.

HTH,

Jon
"TGuthrie" <webforumsuser@macromedia.com> wrote in message
news:e9683k$5v7$1@forums.macromedia.com...
> All I need to do is alternate the color of the backround from white to
> gray. I
> really have no idea how to adjust the repeat region so that it can do
> this,
> instead I end up showing double records. I know what I'm doing wrong, I
> just
> don't know what is right.
>
> Thanks
> Troy
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines