Forums

This topic is locked

Conditional Region extension

Posted 24 Apr 2001 16:26:19
1
has voted
24 Apr 2001 16:26:19 Davy Fennell posted:
Anyone familiar with this? I have a deadline to complete something and would like a little help if possible.

I would like to do 1 of 2 things. Using this extension can I

a Specify the background of a table cell based on two values (Y and N) returned from a database. Also, how do I make the Y and N value disappear from the table layout

or

b replace the Y or N values in the table cells with a gif.

Note: the table cells are all on a Repeat Region behavior.

The end table is a schedule that reflects certain events happening over a specified period. The use of a row of coloured cells or gifs should provide easier viewing for the user.

If anyone knows an easiar way then I'd love to hear it.

For more info see the Replacing Y and N values with a gif query below.

Much appreciated.

Davy

Replies

Replied 26 Apr 2001 12:41:28
26 Apr 2001 12:41:28 Waldo Smeets replied:
Davy,

have a look at this topic: groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=77a6cd55a9ea9c65&seekd=897140417#897140417

Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Replied 26 Apr 2001 15:31:48
26 Apr 2001 15:31:48 Davy Fennell replied:
Thanks Waldo,

I got around this by using a little bit of ASP Code that colours the table cell based on the returned value. If anyone is interested the code is below. Could be a future extension for someone.

<% if RsJune("MondayAM" = "Y" then %>
<td bgcolor="#CC0000" width="5%">
<% else %>
<td bgcolor="#FFFFCC" width="5%">
<% end if %>

However the Y and N values still appear so I need to work out how to amend these.

Thanks to Dreamweaverfever.com for the code.

Cheers,

Davy

Reply to this topic