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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize table in browser

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
Hi group,
I have a table in one of my ASP pages. When I view it on my machine I can see all the columns, however when it is viewed on a 'console', not all the columns can be seen.
Is there a way whereby any user can resize the table/ maximise the window at their leisure?
The user can minimize and close the window but the maximise button is not enabled.

I've increased the width but no can do!! I was hoping that by setting the border to anything other than 0 will give me 'handles' to resize but the form but it just gives you a thicker border!!

Thanks for your help.

Please see code snippet below.
<style>
a:visited {
COLOR:blue;
}

table.dataSet {
background-color:white;
cellPadding:5;
cellSpacing:2;
font-size:10pt;
}

</style>

The table itself...
<table class="dataSet" cellpadding="0" cellspacing="0" border="0" width="800">
<tr>
<%
'Create Column Headings
dim sortDir
Response.Write("<td align=""center"">#</td>" & vbCrLf)
for each x in objRS.Fields
if x.Name <> primaryKey then
sortDir = dir
if sortBy <> x.Name then
sortDir = "ASC"
else
if dir = "ASC" then
sortDir = "DESC"
else
sortDir = "ASC"
end if
end if
Response.Write("<td><a href=""javascript:navigate('1','" & x.Name & "','" & sortDir & "');""><b>" & x.Name & "</b></a></td>" & vbCrLf)
end if
next
Response.Write("<td></td>" & vbCrLf)

%>
</tr>
<%
'Create Record Rows
for i=1 to objRS.PageSize
if objRS.EOF then exit for
Response.Write("<tr onMouseOver=""highlight(this);"" onMouseOut=""lowlight(this);"">" & vbCrLf & vbTab & "<a href=""javascript:showRecord(" & objRS(primaryKey) & ");""><td align=""center"">" & record + i & "</td>" & vbCrLf)

for each x in objRS.Fields
if x.Name <> primaryKey then
Response.Write(vbTab & "<td>" & trim(x.Value) & "</td>" & vbCrLf)
end if
next

Response.Write(vbTab & "</a><td><input type=""checkbox"" name=""item" & objRS(primaryKey) & """ value=""" & objRS(primaryKey) & """ onclick=""updatePageList(this);""></td>" & vbCrLf & "</tr>" & vbCrLf)
objRS.MoveNext
next

%>
</table>
 
What is the 'console'? Generally, if you put the width of the table to 100% it will always fill entire screen available to the client. But if you're asking how to make the client bigger, than html cannot help you. Especially since we don't know what you're using.
 
I've tried 100% on my screen just to see if any changes are apparent, they were not. I'll get the 'console' user to test.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top