Displaying Table to web

Hello, I want to create the table with variable number of column. The problem with TABLE WIDTH = 100% is that if the window is too small, the text will wrap over (which I don’t want). Is there anyway to design a fixed width if the window is too small, but can become relative if the window is bigger ? If that’s not possible, what are the possible solution for it ?

HTMLStr$=|<TABLE WIDTH = 100% cellSpacing=1 cellPadding=1 border=1|

HTMLStr$=HTMLStr$ + |List1|

HTMLStr$=HTMLStr$ + |List2|

HTMLStr$=HTMLStr$ + |List3|

HTMLStr$=HTMLStr$ + |List4|

HTMLStr$=HTMLStr$ + |List5|

i = 0

Recordset.Move(Start)

Do While Not Recordset.EOF And i < Count

HTMLStr$=HTMLStr$ + ||

For j = 0 To 4

HTMLStr$=HTMLStr$ + || + Recordset.Fields(j).Value + ||

Next

HTMLStr$=HTMLStr$ + ||

Recordset.MoveNext

i = i + 1

Loop

HTMLStr$ = HTMLStr$ + ||

Subject: Displaying Table to web

I guess you can define the Table width attribute on the fly, depending upon the dimensions of the window.

I guess this JS function will give u some help…

function alertSize() {

var myWidth = 0, myHeight = 0;

if( typeof( window.innerWidth ) == ‘number’ ) {

//Non-IE

myWidth = window.innerWidth;

myHeight = window.innerHeight;

} else if( document.documentElement &&

  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

//IE 6+ in 'standards compliant mode'

myWidth = document.documentElement.clientWidth;

myHeight = document.documentElement.clientHeight;

} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {

//IE 4 compatible

myWidth = document.body.clientWidth;

myHeight = document.body.clientHeight;

}

window.alert( 'Width = ’ + myWidth );

window.alert( 'Height = ’ + myHeight );

}