HighDots Forums  

Re: How to define a HTML page not allow scroll bars and resize?

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: How to define a HTML page not allow scroll bars and resize? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RC
 
Posts: n/a

Default Re: How to define a HTML page not allow scroll bars and resize? - 08-02-2006 , 08:41 AM






David E. Ross wrote:

Quote:
What I understand from your question is that you want to launch a new
window for a Web page with a fixed window size and no scroll bars. Is
that correct?
Yes, correct.
I would like let users change window size and scroll up/down,
left/right. But all browsers implemented the <table> are suck!

When you have a LARGE/BIG <table>, 1. you want the header row (top row)
remain on the top when you scroll the vertical scrolling bar.

Similar, 2. you want the left column remain on the left when you scroll
the horizontal scrolling bar.

I have been tried to do 1. and 2. for few months. So far I success on 1.
by used CSS

tbody.maintable { overflow-y: scroll; height: 35em; overflow-x: scroll;
width: 40em; }

By this I can limit the table height in 35em. But the browser window
override the width, made the window very wide. I also tried

<table width="80%"> still no luck.

Therefore, I give up this. I came up my own way to handle a LARGE/BIG
<table>. Let user doing up/down, left/right meet the requirement 1. and 2.


Quote:
You will be going through a lot of effort to seize control of my
browser, but my browser will defeat that effort and leave me in control.

Try this link, I know you can still resize the window size.
I hope you can not resize the <frame>
I tested it works well in FF (Firefox) and NS (Netscape), not quite well
in IE.

http://amazon.nws.noaa.gov/hads/test/frametable.html

Any new idea help me improve? Meet the requirement 1. and 2.?


Reply With Quote
  #2  
Old   
David E. Ross
 
Posts: n/a

Default Re: How to define a HTML page not allow scroll bars and resize? - 08-02-2006 , 11:26 PM






RC wrote:
Quote:
David E. Ross wrote:


What I understand from your question is that you want to launch a new
window for a Web page with a fixed window size and no scroll bars. Is
that correct?

Yes, correct.
I would like let users change window size and scroll up/down,
left/right. But all browsers implemented the <table> are suck!

When you have a LARGE/BIG <table>, 1. you want the header row (top row)
remain on the top when you scroll the vertical scrolling bar.

Similar, 2. you want the left column remain on the left when you scroll
the horizontal scrolling bar.

I have been tried to do 1. and 2. for few months. So far I success on 1.
by used CSS

tbody.maintable { overflow-y: scroll; height: 35em; overflow-x: scroll;
width: 40em; }

By this I can limit the table height in 35em. But the browser window
override the width, made the window very wide. I also tried

table width="80%"> still no luck.

Therefore, I give up this. I came up my own way to handle a LARGE/BIG
table>. Let user doing up/down, left/right meet the requirement 1. and 2.


You will be going through a lot of effort to seize control of my
browser, but my browser will defeat that effort and leave me in control.


Try this link, I know you can still resize the window size.
I hope you can not resize the <frame
I tested it works well in FF (Firefox) and NS (Netscape), not quite well
in IE.

http://amazon.nws.noaa.gov/hads/test/frametable.html

Any new idea help me improve? Meet the requirement 1. and 2.?
When I selected the link in your message, a new browser window was
launched (per my options). I did not see a recognizable frame.
However, my browser did indicate frames. The window had no scrollbars,
but I could scroll using my keyboard arrows as well as my PageUp and
PageDown keys. I used my browser's capability to relaunch the frame in
a new tab. Then I had scroll bars.

I got similar results when I copied the link's URL and pasted it into
the address bar of a tab in my original browser window.

Aha! I now understand not only what you want but why. If this task
were mine, I would implement it in an Excel spreadsheet with the top row
and left column frozen. Then the headers in the top row would "stick"
to their columns but always be on top while the labels in the left
column would "stick" to their rows but always at at the left. Then I
would upload the spreadsheet to the Web server and provide a link to it
in my Web page. Of course, this would limit my audience to only those
who can view an Excel spreadsheet.

On the other hand, I believe there is a capability for scrollable
windows within a Web page. This would allow you to put the header row
just above such a window and the contents within the window, which would
have a vertical scrollbar. However, I don't know how to do this, having
never needed it. Also, I'm not sure you can put such a window within
another window so that you can have both a header row and a index column.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.