|
| |
|
|
Mav44
Posts: 228 Joined: 6/25/2006 Status: offline
|
Dreamweaver Asp Code - 4/10/2009 13:32:25
I have used the following ASP line in FP for years and it always gave me a new row for mutiple items in my table. I am now trying to make a similar chart in Dreamwever and it wrecks the table when I use this line. Should a be using some other than "TD , TR" like "div" or "Span" ? <%If counter mod 1 = 0 Then Response.write("</tr><tr>")%>
|
|
|
|
ou812
Posts: 1742 Joined: 1/5/2002 From: San Diego Status: offline
|
RE: Dreamweaver Asp Code - 4/10/2009 14:39:43
Dreamweaver shouldn't have anything to do with it. This is getting processed by the server. You're stating to end the row and start another row. I'm guessing the problem is somewhere else in your code. Maybe not closing a TD or something along those lines. Can you provide more?
_____________________________
-brian Black Holes suck. EnterpriseDB: Enterprise-class relational database management system PostgreSQL: The world's most advanced open source database
|
|
|
|
Mav44
Posts: 228 Joined: 6/25/2006 Status: offline
|
RE: Dreamweaver Asp Code - 4/10/2009 14:47:18
Full code for one of the table cells below --- <tr> <!--#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 MyASP_1 WHERE (a_approval = '::a_approval::' AND cat1 = '::cat1::' AND bf_incard = '::bf_incard::') ORDER BY bh_pp1 ASC,c_name ASC" fp_sDefault="a_approval=y&cat1=entertainp&bf_incard=y" fp_sNoRecords="" fp_sDataConn="ridert" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=0 fp_fTableFormat=False fp_fMenuFormat=False fp_sMenuChoice="" fp_sMenuValue="" fp_sColTypes="&a_approval=202&c_name=202&be_norwes=202&cat1=202&o_category=202&bf_incard=202&bg_myincard=202&" fp_iDisplayCols=10 fp_fCustomQuery=False BOTID=0 fp_iRegion=BOTID counter=0 %> <!--#include file="_fpclass/fpdbrgn1.inc"--> <%counter=counter+1%> <td width="24%" align="left"><font face="Verdana" size="2"> <a href="<%=FP_Field(fp_rs,"o_category")%>.asp"> <%If len(trim(FP_Field(fp_rs,"o_category"))) > 0 Then %> <%End If%> <%If len(trim(FP_Field(fp_rs,"c_name"))) > 0 Then %> <%=FP_Field(fp_rs,"c_name")%></a> <%End If%> </font></td> <%If counter mod 1 = 0 Then Response.write("</tr><tr>")%> <!--#include file="_fpclass/fpdbrgn2.inc"--> </tr>
|
|
|
|
Mav44
Posts: 228 Joined: 6/25/2006 Status: offline
|
RE: Dreamweaver Asp Code - 4/13/2009 0:47:50
I think it is a difference in the way Dreamwever lays out a table vs FP. Using the ("</tr><tr>")%> just added an additional row on the end in Dreamweaver where FP I got another in my same colum. My table is 3 colums across and 10 rows down. with the code above in each block calling out a different return. I went with ("<p>")%> in Dreamweaver and it is working "OK" but dowsn't look as good.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|