CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Alternate row colors

Print topic Send  topic

Author Message
Jens Chr. Andersen
Posted: 04/08/2002, 1:11 PM

This is a multi-part message in MIME format.

------=_NextPart_000_008A_01C1DF4B.2C34BEC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi ..

Anyone got a simpel code examples for creating rows with alternate =
colors - i.e. one row white background, the next grey background and so =
forth ....

Thx

Jens, Denmark

------=_NextPart_000_008A_01C1DF4B.2C34BEC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi ..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Anyone got a simpel code examples for =
creating rows=20
with alternate colors - i.e. one row white background, the next grey =
background=20
and so forth ....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thx</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Jens, =
Denmark</FONT></DIV></BODY></HTML>

------=_NextPart_000_008A_01C1DF4B.2C34BEC0--
Alexey Alexapolsky
Posted: 04/09/2002, 1:38 AM

This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C1DFBA.7B4C65C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Refer to gotocode.com/artlist.asp for the article on this topic.

--=20
Alex
CodeCharge Developer


"Jens Chr. Andersen" <jenschr@koldandersen.dk> wrote in message =
news:a8sthb$i6t$1@news.codecharge.com...
Hi ..
=20
Anyone got a simpel code examples for creating rows with alternate =
colors - i.e. one row white background, the next grey background and so =
forth ....
=20
Thx
=20
Jens, Denmark

------=_NextPart_000_001B_01C1DFBA.7B4C65C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Refer to gotocode.com/artlist.asp for the article on =
this=20
topic.</FONT></DIV>
<DIV><BR>-- <BR>Alex<BR>CodeCharge Developer</DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV>"Jens Chr. Andersen" <<A=20
=
href=3D"mailto:jenschr@koldandersen.dk">jenschr@koldandersen.dk</A>> =
wrote in=20
message <A=20
=
href=3D"news:a8sthb$i6t$1@news.codecharge.com">news:a8sthb$i6t$1@news.cod=
echarge.com</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi ..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Anyone got a simpel code examples for =
creating=20
rows with alternate colors - i.e. one row white background, the next =
grey=20
background and so forth ....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thx</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Jens,=20
Denmark</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_001B_01C1DFBA.7B4C65C0--
Jens Chr. Andersen
Posted: 04/16/2002, 5:08 PM

This is a multi-part message in MIME format.

------=_NextPart_000_0016_01C1E5B5.9F04FCB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thx Alex,

I overlooked that article.

But i cant get it work .. im using a "real" css file to control the =
design of the page - so my code looks like this - and in DataTD in =
custom style i refer to class=3D{DataTDVar}

If ColorSwitch Then
DataTDVar =3D "DataTDCol2"
Else
DataTDVar =3D "DataTDCol2Inv"
End If
ColorSwitch =3D Not ColorSwitch
SetVar "DataTDVar", ToHtml(DataTDVar)

Ive put a response write in and it shows (at the top of the page) that =
the variable shifts values !

Any suggestions ?=20

"Alexey Alexapolsky" <alexa@codecharge.com> skrev i en meddelelse =
news:a8u99u$6dg$2@news.codecharge.com...
Refer to gotocode.com/artlist.asp for the article on this topic.

--=20
Alex
CodeCharge Developer


"Jens Chr. Andersen" <jenschr@koldandersen.dk> wrote in message =
news:a8sthb$i6t$1@news.codecharge.com...
Hi ..

Anyone got a simpel code examples for creating rows with alternate =
colors - i.e. one row white background, the next grey background and so =
forth ....

Thx

Jens, Denmark

------=_NextPart_000_0016_01C1E5B5.9F04FCB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thx Alex,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I overlooked that article.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But i cant get it work .. im using a =
"real" css=20
file to control the design of the page - so my code looks like =
this -=20
and in DataTD in custom style i refer to =
class=3D{DataTDVar}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>If ColorSwitch Then<BR>DataTDVar =3D=20
"DataTDCol2"<BR>Else<BR>DataTDVar =3D "DataTDCol2Inv"<BR>End =
If<BR>ColorSwitch =3D=20
Not ColorSwitch<BR>SetVar "DataTDVar", =
ToHtml(DataTDVar)<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Ive put a response write in and it =
shows (at the=20
top of the page) that the variable shifts values !</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions ?</FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Alexey Alexapolsky" <<A=20
href=3D"mailto:alexa@codecharge.com">alexa@codecharge.com</A>> =
skrev i en=20
meddelelse <A=20
=
href=3D"news:a8u99u$6dg$2@news.codecharge.com">news:a8u99u$6dg$2@news.cod=
echarge.com</A>...</DIV>
<DIV><FONT size=3D2>Refer to gotocode.com/artlist.asp for the article =
on this=20
topic.</FONT></DIV>
<DIV><BR>-- <BR>Alex<BR>CodeCharge Developer</DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Jens Chr. Andersen" <<A=20
=
href=3D"mailto:jenschr@koldandersen.dk">jenschr@koldandersen.dk</A>> =
wrote=20
in message <A=20
=
href=3D"news:a8sthb$i6t$1@news.codecharge.com">news:a8sthb$i6t$1@news.cod=
echarge.com</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi ..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Anyone got a simpel code examples =
for creating=20
rows with alternate colors - i.e. one row white background, the next =
grey=20
background and so forth ....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thx</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Jens,=20
Denmark</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0016_01C1E5B5.9F04FCB0--
Tomasz
Posted: 04/17/2002, 3:02 AM

.... Zdaje się, że w Śr, 17 kwi 2002 00:14:36 GMT Jens Chr. Andersen
napisał (a):

> But i cant get it work .. im using a "real" css file to control
> the design of the page - so my code looks like this - and in
> DataTD in custom style i refer to class={DataTDVar}
>
> If ColorSwitch Then
> DataTDVar = "DataTDCol2"
> Else
> DataTDVar = "DataTDCol2Inv"
> End If
> ColorSwitch = Not ColorSwitch
> SetVar "DataTDVar", ToHtml(DataTDVar)
>
> Ive put a response write in and it shows (at the top of the page)
> that the variable shifts values !

as i understand the matter, you cannot use variable to change TD bckg
if you use external css file.
the solution would be to create 2 custom styles inside html file and
write script which replace <td> tags

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.