Forums
This topic is locked
For Waldo
26 Jun 2001 02:02:43 Rick Crow posted:
Waldo,This is my first use of your Conditional Region Extension. When I apply the SB to my region, the region shows or hides as required, but the data within the region does not.
Following is the code:
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="Connections/Thomson.asp" -->
<%
var rsLearn = Server.CreateObject("ADODB.Recordset"
rsLearn.ActiveConnection = MM_Thomson_STRING;
rsLearn.Source = "SELECT ID, Title, Introduction, Objectives, Cont1hd, Cont1txt, Cont1img, PwrTip1hd, PwrTip1txt FROM PreQuizContent";
rsLearn.CursorType = 0;
rsLearn.CursorLocation = 2;
rsLearn.LockType = 3;
rsLearn.Open();
var rsLearn_numRows = 0;
%>
<html>
<head>
<title>Thomson Electronics :: Learn & Earn</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="95%" border="0">
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font size="3"><%=(rsLearn.Fields.Item("Title".Value)%></font></b></font></td>
</tr>
<tr>
<td><img src="images/shim.gif" width="1" height="10"></td>
</tr>
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><%=(rsLearn.Fields.Item("Cont1hd".Value)%></b></font></td>
</tr>
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><%=(rsLearn.Fields.Item("Cont1txt".Value)%></font></td>
</tr>
<tr>
<td><img src="images/shim.gif" width="1" height="10"></td>
</tr>
<% if (rsLearn.Fields.Item("PwrTip1txt".Value > ("") { // script %>
<tr>
<td height="10" bgcolor="#CCCCCC">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Power
Tip</b></font> </td>
</tr>
<tr>
<td><img src="images/shim.gif" width="1" height="2"></td>
</tr>
<tr>
<td bgcolor="#666666"><img src="images/shim.gif" width="1" height="1"></td>
</tr>
<tr>
<td><img src="images/shim.gif" width="1" height="2"></td>
</tr>
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i><%=(rsLearn.Fields.Item("PwrTip1txt".Value)%></i></font></td>
</tr>
<tr>
<td><img src="images/shim.gif" width="1" height="10"></td>
</tr>
<% } // if (rsLearn.Fields.Item("PwrTip1txt".Value > ("") script %>
<tr>
<td><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">> Next</font></b></td>
</tr>
</table>
</body>
</html>
<%
rsLearn.Close();
%>
Any ideas?
Thanks in advance.
Replies
Replied 27 Jun 2001 10:34:46
27 Jun 2001 10:34:46 Waldo Smeets replied:
Have a look at the question at this page, I think the solution also fits to you. Success.
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------