Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hey guys, I was wondering if a

Status
Not open for further replies.

rtnMichael

Programmer
Aug 5, 2002
152
US
hey guys,
I was wondering if anybody could help me in finding the problem that's causing Netscape to show a list all on one line. IE does the page fine, and I can't see the problem off hand. Can someone help me???

here's where the problem is:

<tr>
<td valign=top>
<select name='list_of_params' size='10' multiple style='width:275px;height:200;'>
<%
While not osRecordSet.EOF
parms(max_parm) = osRecordSet.Fields(&quot;name&quot;)
' Check to see if item exists in exclude list

for q = 1 to max_exclude - 1
if exclude(q) = parms(max_parm) then
' don't print it out
found = 1
end if
next

if found = 0 then
Response.Write(&quot;<option value='&quot;)
Response.Write(parms(max_parm))
Response.Write(&quot;'>&quot;)
Response.Write(parms(max_parm))
Response.Write(&quot;</option>&quot;)
max_parm = max_parm + 1
found = 0
else
found = 0
end if
osRecordSet.MoveNext
wend
....etc.
%>
</select>
</td>
...etc
</tr>


NOTE: The ASP stuff is just to show you how many things can be generated from the database, so it's not just hard coded and the select can be of variable size

Thanks
M
 
It might be more helpful to view the source code after the page is generated. Could you post the generated source code here or provide a url?

Does it happen &quot;every&quot; time in Netscape ... and what version are you using?
 
well, I'm not sure how much was needed to show, but here's a little bit of it.

<div align=&quot;center&quot;>
<a name=&quot;pagetop&quot;></a>
<table border=1 cellpadding=0 cellspacing=0 width=600>
<tr>
<td colspan=3 valign=top>

<table border=5 cellpadding=3 cellspacing=3 width=100%>
<tr>
<td><font face=arial size=3><b>List of Parameters</b></font></td>
<td><font face=arial size=3><b> </b></font></td>
<td><font face=arial size=3><b>Excluded Parameters</b></font></td>
</tr>
<tr>
<td>
<select name='list_of_params' size='10' multiple style='width:275px;height:200;'>
<option value='VL600_TEST_3'>VL600_TEST_3</option><option value='VL610_TEST_4'>VL610_TEST_4</option>
</select>
</td>
<td valign='middle' align='center'>
<input type='submit' name='btnSubmit' value='> > ' onclick=move_exclusion(list_of_params);>
<br><br>
<input type='submit' name='btnSubmit' value=' < <' onclick=move_exclusion_back(params);>
</td>

<td valign=top>
<select name='list_of_excludes' size='10' multiple style=&quot;width:275px;height:200;&quot;>

</select>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=2>
<table border=0>
<tr>
<form action='ResultPage.asp' method='post' id=form3 name=form3>
<input type='hidden' value='Engineering Test' name='testtype'>
<td width=200><input type='button' name='btnSubmit' value='Submit Exclusions' onclick=submit();>
</td>
<td width=150 align=&quot;center&quot;><input type='button' name='btnSubmit' value='Cancel' onClick=&quot;history.go(-1)&quot;>
</td>
</form>
</tr>
</table>
</td>
</tr>
</table>
</div>


I'm working on it right now, and I'm zoning in on the problem, but still unsure what it is.

Thanks
M
 
I found it!!!! I see that I wasn't putting the <form> in the right place. I placed it after the first table, and everything popped up fine. I guess after a while, the obvious becomes less and less obvious :)

Thanks for the help
M
 
>>I guess after a while, the obvious becomes less and less obvious<<

Glad you found it because I was starting to get frustrated myself. But then, not having all of the code to work with might have been part of the problem. ;-)
 
so true, I guess I figured the problem portion of the code would be sufficient enough, little things you learn as you go....sorry for the frustration. (-:

M
 
No problem, I should have noticed the missing form tags. :)
 
I've found that placing the opening and closing form tags outside of all tables whenever possible helps a lot (they don't need to be adjacent to the form fields), especially when you have nested tables on the page. I've had problems with that before myself. Sometimes I've even put the opening form tag right after the opening body tag and closed the form after closing all of the nested tables. You just have to watch out for undesirable extra space around the opening and closing form tags.
 
I guess as long as all the info you're tryin to get is within the form tag, you're fine. It does fail to tell you if it's not, though. That's where all the frustration comes from, trying to read all that tedious code and it all looks the same!!!
 
I've discovered this html validator (CSE Html Validator) that I like a lot. I just bought the Standard version after using the free &quot;Lite&quot; version for a while (no expiration period):


They have 3 versions:

Lite (Free)
Standard
Professional

The Standard version works just fine for me and even the free version is really helpful for most stuff.
 
I just downloaded it, and it seems like it's going to work fine. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top