|
gmcl -> RE: Spooky Diet Macro "Revisited" (8/13/2005 14:06:17)
|
Hi Here is the orginal code - uploaded and displays Access database okay. Database is in the root dir of fpdb. <html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ID</title>
</head>
<body>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>ID</b></th>
<th ALIGN="LEFT"><b>date</b></th>
<th ALIGN="LEFT"><b>opponents</b></th>
<th ALIGN="LEFT"><b>result</b></th>
<th ALIGN="LEFT"><b>reporter</b></th>
<th ALIGN="LEFT"><b>team</b></th>
<th ALIGN="LEFT"><b>report</b></th>
<th ALIGN="LEFT"><b>teamRef</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-columntypes="3,202,202,202,202,203,203,202" s-dataconnection="tempdata" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource="Table1" s-displaycolumns="ID,date,opponents,result,reporter,team,report,teamRef" s-criteria s-order s-sql="SELECT * FROM Table1" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="5" botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.</font></td></tr>" startspan --><!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM Table1"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=8 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="tempdata"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ID=3&date=202&opponents=202&result=202&reporter=202&team=203&report=203&teamRef=202&"
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="2648" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="ID" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>ID<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"ID")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="62813" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="date" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>date<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"date")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="5315" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="opponents" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>opponents<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"opponents")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="23710" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="result" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>result<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"result")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="17234" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="reporter" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>reporter<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"reporter")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="17932" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="team" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>team<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"team")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="6848" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="report" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>report<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"report")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="17243" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,date,opponents,result,reporter,team,report,teamRef" s-column="teamRef" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>teamRef<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"teamRef")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="15086" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="5" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr><TR><TD VALIGN=MIDDLE COLSPAN=64><NOBR><INPUT TYPE=Button VALUE=" |< "><INPUT TYPE=Button VALUE=" < "><INPUT TYPE=Button VALUE=" > "><INPUT TYPE=Button VALUE=" >| "> [1/5]</NOBR><BR></td></tr>" startspan --><!--#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>
</body>
</html>
Here is the code after applying the Spooky Diet Macro :-
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ID</title>
</head>
<body>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>ID</b></th>
<th ALIGN="LEFT"><b>date</b></th>
<th ALIGN="LEFT"><b>opponents</b></th>
<th ALIGN="LEFT"><b>result</b></th>
<th ALIGN="LEFT"><b>reporter</b></th>
<th ALIGN="LEFT"><b>team</b></th>
<th ALIGN="LEFT"><b>report</b></th>
<th ALIGN="LEFT"><b>teamRef</b></th>
</tr>
</thead>
<tbody>
<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM Table1"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=8 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="tempdata"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ID=3&date=202&opponents=202&result=202&reporter=202&team=203&report=203&teamRef=202&"
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<tr>
<td>
<%=FP_FieldVal(fp_rs,"ID")%></td>
<td>
<%=FP_FieldVal(fp_rs,"date")%></td>
<td>
<%=FP_FieldVal(fp_rs,"opponents")%></td>
<td>
<%=FP_FieldVal(fp_rs,"result")%></td>
<td>
<%=FP_FieldVal(fp_rs,"reporter")%></td>
<td>
<%=FP_FieldVal(fp_rs,"team")%></td>
<td>
<%=FP_FieldVal(fp_rs,"report")%></td>
<td>
<%=FP_FieldVal(fp_rs,"teamRef")%></td>
</tr>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</tbody>
</table>
</body>
</html> Page returns message : Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Thanks for your help. Graeme
|
|
|
|