Forums
This topic is locked
Help needed with show/hide region
Posted 14 Sep 2001 14:04:37
1
has voted
14 Sep 2001 14:04:37 Jon Kerbey posted:
Okay, I'll start from the beginning. I have set up a news section in ultradev which was no problem at all; part of this news section contains a link button, which links to whatever is referred to in the news item. The form to insert the news item contains a form field that you can enter the link into. This is all fine and easy, however, if the news item isn't related to a site, or update, then it isn't necessary to have a link, so I have tried using the show/hide region but that doesn't work - i have basically tried everything to stop the link button appearingon the news page when the link field in the database for that record is empty, but to no avail!
Can anyone help??? please??
Replies
Replied 14 Sep 2001 19:55:09
14 Sep 2001 19:55:09 Owen Eastwick replied:
Try something like this in the table cell:
<pre id=code><font face=courier size=2 id=code>
<td>
<% If(YourRecordsetName.Fields.Item("YourLink".Value)<>"" Then %>
<a href="<% = (YourRecordsetName.Fields.Item("YourLink".Value)%>"><img src="YourImageDirectory/YourLinkImage.gif" width="50" height="20"></a>
<% Else %>
& nbsp (take out the space between & and nbsp - only way to get it to appear in forum)
<% End If %>
</td></font id=code></pre id=code>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Edited by - oeastwick on 09/14/2001 20:00:24
<pre id=code><font face=courier size=2 id=code>
<td>
<% If(YourRecordsetName.Fields.Item("YourLink".Value)<>"" Then %>
<a href="<% = (YourRecordsetName.Fields.Item("YourLink".Value)%>"><img src="YourImageDirectory/YourLinkImage.gif" width="50" height="20"></a>
<% Else %>
& nbsp (take out the space between & and nbsp - only way to get it to appear in forum)
<% End If %>
</td></font id=code></pre id=code>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Edited by - oeastwick on 09/14/2001 20:00:24