Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 17 Jul 2008 17:07:38 -0400,    group: microsoft.public.inetsdk.html_authoring        back       


Web page displays incorrectly   
I'm generating a page using classic ASP. It displays fine in that other browser, but 
IE 7 displays it with a HUGE gap between the first <HR> and the table. Other pages 
display properly. There are 337 of the <TR>'s. I've only left in a few for this post.

I've looked at it so long, I'm sure I'm missing something simple. Another pair of 
eyes please?

TIA - Mike

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Log</title>
</head>

<center>
<H3>Da PAGE</H3>
<hr size="4" width="90%" color="red" align="center">

<form method="POST" action="changeact.asp">
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" 
bordercolor="#0000FF" width="40%">

   <tr>
     <td width="50%">
       1A0 - S.M.O.M.  </td>
     <td width="50%">
       <input type=checkbox name="CB" value="246"></TD>  </tr>

   <tr>
     <td width="50%">
       1S - Spratley Island  </td>
     <td width="50%">
       <input type=checkbox name="CB" value="247"></TD>  </tr>

   <tr>
     <td width="50%">
       3A - Monaco  </td>
     <td width="50%">
       <input type=checkbox name="CB" value="260"></TD>  </tr>

   <tr>
     <td width="50%">
       3B6 - Agalega & St. Brandon  </td>
     <td width="50%">
       <input type=checkbox name="CB" value="4"></TD>  </tr>

</table>
<table width="40%">
   <tr>
     <td>
       <input type="submit" value="Log it" name="B1">
       <input type="hidden" value=K4UTE name="HC">
     </td>
     <td>
       <input type="reset" value="Reset" name="B2">
     </td>
   </tr>
</table>
</form>
<p><br>
</p>

<hr size="4" width="90%" color="green" align="center">
</body>
</html>
date: Thu, 17 Jul 2008 17:07:38 -0400   author:   MikeR

Re: Web page displays incorrectly   
MikeR wrote:
I got it solved. I moved the </TD> tag out of the tmp variable, and put it at the end 
of the loop

<td width="50%">
<%SQL = "Select * FROM Worked where Call = '" & SanCall & "' AND ADIF = '"
   SQL = SQL & CRS("ADIF") & "'"
   Set WRS=ConnTemp.Execute(sql)
   CBVal = CRS("ADIF")
   if not WRS.EOF and not WRS.BOF then
     if WRS("ADIF") <> "" then
       tmp = "<input type=checkbox name=""CB"" value=" & CBVal & " 
Checked></TD>"<-BAD
       response.write tmp
     end if
   else
     tmp = "<input type=checkbox name=""CB"" value=""" & CBVal & """>"
     response.write tmp
   end if
   %> </TD></tr>  <----- GOOD
   <%CRS.MoveNext
   Loop%>


> <html>
> 
> <head>
> <meta http-equiv="Content-Language" content="en-us">
> <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>Log</title>
> </head>
> 
> <center>
> <H3>Da PAGE</H3>
> <hr size="4" width="90%" color="red" align="center">
> 
> <form method="POST" action="changeact.asp">
> <table border="1" cellpadding="0" cellspacing="1" 
> style="border-collapse: collapse" bordercolor="#0000FF" width="40%">
> 
>   <tr>
>     <td width="50%">
>       1A0 - S.M.O.M.  </td>
>     <td width="50%">
>       <input type=checkbox name="CB" value="246"></TD>  </tr>
> 
>   <tr>
>     <td width="50%">
>       1S - Spratley Island  </td>
>     <td width="50%">
>       <input type=checkbox name="CB" value="247"></TD>  </tr>
> 
>   <tr>
>     <td width="50%">
>       3A - Monaco  </td>
>     <td width="50%">
>       <input type=checkbox name="CB" value="260"></TD>  </tr>
> 
>   <tr>
>     <td width="50%">
>       3B6 - Agalega & St. Brandon  </td>
>     <td width="50%">
>       <input type=checkbox name="CB" value="4"></TD>  </tr>
> 
> </table>
> <table width="40%">
>   <tr>
>     <td>
>       <input type="submit" value="Log it" name="B1">
>       <input type="hidden" value=K4UTE name="HC">
>     </td>
>     <td>
>       <input type="reset" value="Reset" name="B2">
>     </td>
>   </tr>
> </table>
> </form>
> <p><br>
> </p>
> 
> <hr size="4" width="90%" color="green" align="center">
> </body>
> </html>
date: Thu, 17 Jul 2008 18:11:15 -0400   author:   MikeR

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us