Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adjusting window width to table width
Message
From
02/08/2001 10:59:43
 
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00538712
Message ID:
00538838
Views:
12
>>>>Is there a way to adjust the window width based on the table width? The table width may vary based on the length of some fields. I would like the browser window to adjust based on it.
>>>
>>>In java script you can use self.resizeto(width,height) to set the window size. So if you set the table width to 'width=710' you should be able to use the same 710 in the java code self.resizeto(720,200).
>>
>>We do not know the table width. It's size may vary depending on the column content. I was looking mostly for a function such as Table.Width.
>
>Michel;
>
>If you use ADO, you might try this:
>
>1. Create a variable for width
>2. Set the value of the variable to < %=ors("lastname").definedsize% >
>3. Use this value for your width
>
>This should use the length of the field to establish the width of the window.

I mean the column width is changing as per its content not the as per the field size. For example, even if the field size is 20, I may have only Test and Test1 as the values so the table width will be less. Yes, we could force the column width, but again, if we have values such as WWWWWWWWWWWWWWWWWWWWW this will make the column width to increase. So, basically, we need to get its width after generation.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform