|
 |
asp_web_howto thread: Scrollbar
Message #1 by philip.moh@a... on Tue, 20 Mar 2001 01:26:22
|
|
Hello Experts,
Anyone of you know how to disable/enable the frame scrollbar in code? For
example, my frame consist of two parts - header and body. Header will
remaind static all the time whereelse body will change from time to time.
what I have to do is to force the scroll bar not to appear in the certain
page. Possible? Please advise....URGENT.
Thanks in advance.
PHIL
Message #2 by "Stephen Shilling" <sash1@n...> on Tue, 20 Mar 2001 11:49:20 -0000
|
|
Philip,
Please find attached a sample frameset piece of code which deals with the
scrollbar issue, basically you can turn the scrollbars off for each of your
frames individually, hope this helps.
<frameset framespacing="0" border="0" rows="85,220,45,*,48" frameborder="0"
onUnload="JavaScript:unload_window();">
<frame name="top_top_frame" marginwidth="0" marginheight="0" scrolling="no"
noresize src="medium_market_contract_detail[2].html">
<frame name="top_middle_frame" marginwidth="0" marginheight="0"
scrolling="yes" noresize src="medium_market_contract_detail[3].html">
<frame name="bottom_top_frame" marginwidth="0" marginheight="0"
scrolling="yes" noresize src="medium_market_contract_detail[4].html">
<frame name="bottom_middle_frame" marginwidth="0" marginheight="0"
scrolling="yes" noresize src="medium_market_contract_detail[5].html">
<frame name="bottom_frame" marginwidth="0" marginheight="0" scrolling="yes"
noresize src="medium_market_contract_detail[6].html">
</frameset>
Regards, Stephen
----- Original Message -----
From: <philip.moh@a...>
To: ASP Web HowTo <asp_web_howto@p...>
Sent: Tuesday, March 20, 2001 1:26 AM
Subject: [asp_web_howto] Scrollbar
> Hello Experts,
>
> Anyone of you know how to disable/enable the frame scrollbar in code? For
> example, my frame consist of two parts - header and body. Header will
> remaind static all the time whereelse body will change from time to time.
> what I have to do is to force the scroll bar not to appear in the certain
> page. Possible? Please advise....URGENT.
>
> Thanks in advance.
> PHIL
> ---
> SoftArtisans helps developers build robust, scalable Web applications!
> Excel Web reports, charts: http://www.softartisans.com/excelwriter.html
> File uploads: http://www.softartisans.com/saf.html
> Transactional file management: http://www.softartisans.com/saf1.html
> Scalability: http://www.softartisans.com/saxsession.html
> ASPstudio value pack: http://www.softartisans.com/aspstudiosuite.html
$subst('Email.Unsub')
>
>
Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Tue, 20 Mar 2001 11:48:06 -0000
|
|
define your frame like this
<FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
and to change scrolling propery dynamically just do
parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: Tuesday, March 20, 2001 1:26 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Scrollbar
Hello Experts,
Anyone of you know how to disable/enable the frame scrollbar in code? For
example, my frame consist of two parts - header and body. Header will
remaind static all the time whereelse body will change from time to time.
what I have to do is to force the scroll bar not to appear in the certain
page. Possible? Please advise....URGENT.
Thanks in advance.
PHIL
---
SoftArtisans helps developers build robust, scalable Web applications!
Excel Web reports, charts: http://www.softartisans.com/excelwriter.html
File uploads: http://www.softartisans.com/saf.html
Transactional file management: http://www.softartisans.com/saf1.html
Scalability: http://www.softartisans.com/saxsession.html
ASPstudio value pack: http://www.softartisans.com/aspstudiosuite.html
$subst('Email.Unsub')
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #4 by philip.moh@a... on Wed, 21 Mar 2001 08:59:54 +0800
|
|
Hello Alex,
Thanks for the tips. But could you explain a bit more on where should I put
the code in the page? I copied and pasted the following code in page but I
still got the scrollbar in runtime... how? BTW, what is the SRC and NAME for
in the following code? And what is the second code for? Which one should I
use? Please advise, thanks.
<FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> Sent: Tuesday, March 20, 2001 7:48 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> define your frame like this
>
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
>
> and to change scrolling propery dynamically just do
>
> parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
>
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Tuesday, March 20, 2001 1:26 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Scrollbar
>
>
> Hello Experts,
>
> Anyone of you know how to disable/enable the frame scrollbar in code? For
> example, my frame consist of two parts - header and body. Header will
> remaind static all the time whereelse body will change from time to time.
> what I have to do is to force the scroll bar not to appear in the certain
> page. Possible? Please advise....URGENT.
>
> Thanks in advance.
> PHIL
Message #5 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 21 Mar 2001 09:56:34 -0000
|
|
I presume you know how to set up a frameset
SRC is the file that is loaded into the frame, name is the identifier which
will allow you to refer to the frame through code, or for hyperlinks
<FRAMESET COLS="100,*">
<FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
<FRAME SCROLLING="YES" SRC="main.htm" NAME="FRAME2">
</FRAMESET>
The first frame will not have a scroll bar, the second one will. In order
to turn off the scroll bar in the second frame at some point after it has
loaded, use this code
parent.frames.FRAME2.scrolling = "no"
when you call the code is entirely up to you, depending on what you are
trying to do
-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: Wednesday, March 21, 2001 1:00 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Scrollbar
Hello Alex,
Thanks for the tips. But could you explain a bit more on where should I put
the code in the page? I copied and pasted the following code in page but I
still got the scrollbar in runtime... how? BTW, what is the SRC and NAME for
in the following code? And what is the second code for? Which one should I
use? Please advise, thanks.
<FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> Sent: Tuesday, March 20, 2001 7:48 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> define your frame like this
>
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
>
> and to change scrolling propery dynamically just do
>
> parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
>
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Tuesday, March 20, 2001 1:26 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Scrollbar
>
>
> Hello Experts,
>
> Anyone of you know how to disable/enable the frame scrollbar in code? For
> example, my frame consist of two parts - header and body. Header will
> remaind static all the time whereelse body will change from time to time.
> what I have to do is to force the scroll bar not to appear in the certain
> page. Possible? Please advise....URGENT.
>
> Thanks in advance.
> PHIL
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Message #6 by philip.moh@a... on Thu, 22 Mar 2001 08:58:41 +0800
|
|
Hello Alex,
Thanks for you time but I still got some doubt. Following is what I have:
I have a frame called header. The initial page is menu.htm.
The second frame called main. The initial page body.htm.
When the frame is loaded, this is the two page appear on the screen. From
the menu, use will choose to see other page and display on the second page.
There is a page call detail.htm, and the page is very long. When the page is
load and display on the screen, the scrollbar will appear. What I want to do
is to force the scroll bar not to appear on the screen. So, where should I
put the code <parent.frames.main.scrolling="no">? in the detail.htm page? I
have tried but doesn't work, the scroll bar still appear. Please advise.
Thanks.
PHIL
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> Sent: Wednesday, March 21, 2001 5:57 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> I presume you know how to set up a frameset
>
> SRC is the file that is loaded into the frame, name is the identifier
> which
> will allow you to refer to the frame through code, or for hyperlinks
>
> <FRAMESET COLS="100,*">
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> <FRAME SCROLLING="YES" SRC="main.htm" NAME="FRAME2">
> </FRAMESET>
>
> The first frame will not have a scroll bar, the second one will. In order
> to turn off the scroll bar in the second frame at some point after it has
> loaded, use this code
>
> parent.frames.FRAME2.scrolling = "no"
>
> when you call the code is entirely up to you, depending on what you are
> trying to do
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Wednesday, March 21, 2001 1:00 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
>
> Hello Alex,
>
> Thanks for the tips. But could you explain a bit more on where should I
> put
> the code in the page? I copied and pasted the following code in page but
> I
> still got the scrollbar in runtime... how? BTW, what is the SRC and NAME
> for
> in the following code? And what is the second code for? Which one should I
> use? Please advise, thanks.
>
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
>
>
> parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
>
>
>
> > -----Original Message-----
> > From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> > Sent: Tuesday, March 20, 2001 7:48 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> > define your frame like this
> >
> > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> >
> > and to change scrolling propery dynamically just do
> >
> > parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> >
> >
> > -----Original Message-----
> > From: philip.moh@a... [mailto:philip.moh@a...]
> > Sent: Tuesday, March 20, 2001 1:26 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Scrollbar
> >
> >
> > Hello Experts,
> >
> > Anyone of you know how to disable/enable the frame scrollbar in code?
> For
> > example, my frame consist of two parts - header and body. Header will
> > remaind static all the time whereelse body will change from time to
> time.
> > what I have to do is to force the scroll bar not to appear in the
> certain
> > page. Possible? Please advise....URGENT.
> >
> > Thanks in advance.
> > PHIL
Message #7 by Shaun Steckley <SSTECKLEY@P...> on Wed, 21 Mar 2001 20:48:48 -0500
|
|
Paste your HTML frameset page so we can take a look at what you have...
-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: Wednesday, March 21, 2001 7:59 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Scrollbar
Hello Alex,
Thanks for you time but I still got some doubt. Following is what I have:
I have a frame called header. The initial page is menu.htm.
The second frame called main. The initial page body.htm.
When the frame is loaded, this is the two page appear on the screen. From
the menu, use will choose to see other page and display on the second page.
There is a page call detail.htm, and the page is very long. When the page is
load and display on the screen, the scrollbar will appear. What I want to do
is to force the scroll bar not to appear on the screen. So, where should I
put the code <parent.frames.main.scrolling="no">? in the detail.htm page? I
have tried but doesn't work, the scroll bar still appear. Please advise.
Thanks.
PHIL
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> Sent: Wednesday, March 21, 2001 5:57 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> I presume you know how to set up a frameset
>
> SRC is the file that is loaded into the frame, name is the identifier
> which
> will allow you to refer to the frame through code, or for hyperlinks
>
> <FRAMESET COLS="100,*">
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> <FRAME SCROLLING="YES" SRC="main.htm" NAME="FRAME2">
> </FRAMESET>
>
> The first frame will not have a scroll bar, the second one will. In order
> to turn off the scroll bar in the second frame at some point after it has
> loaded, use this code
>
> parent.frames.FRAME2.scrolling = "no"
>
> when you call the code is entirely up to you, depending on what you are
> trying to do
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Wednesday, March 21, 2001 1:00 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
>
> Hello Alex,
>
> Thanks for the tips. But could you explain a bit more on where should I
> put
> the code in the page? I copied and pasted the following code in page but
> I
> still got the scrollbar in runtime... how? BTW, what is the SRC and NAME
> for
> in the following code? And what is the second code for? Which one should I
> use? Please advise, thanks.
>
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
>
>
> parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
>
>
>
> > -----Original Message-----
> > From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> > Sent: Tuesday, March 20, 2001 7:48 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> > define your frame like this
> >
> > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> >
> > and to change scrolling propery dynamically just do
> >
> > parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> >
> >
> > -----Original Message-----
> > From: philip.moh@a... [mailto:philip.moh@a...]
> > Sent: Tuesday, March 20, 2001 1:26 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Scrollbar
> >
> >
> > Hello Experts,
> >
> > Anyone of you know how to disable/enable the frame scrollbar in code?
> For
> > example, my frame consist of two parts - header and body. Header will
> > remaind static all the time whereelse body will change from time to
> time.
> > what I have to do is to force the scroll bar not to appear in the
> certain
> > page. Possible? Please advise....URGENT.
> >
> > Thanks in advance.
> > PHIL
Message #8 by philip.moh@a... on Thu, 22 Mar 2001 10:39:45 +0800
|
|
OK....
1) this is the index.htm:
<html>
<head>
<title>my frame</title>
</head>
<frameset rows="64,*">
<frame name="header" scrolling="no" noresize target="main" src="menu.htm">
<frame name="main" src="body.htm">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
2) this is the meun.htm:
<html>
<head>
<title>menu</title>
<base target="main">
</head>
<body>
<p><a href="detail.htm">Detail</a></p>
</body>
</html>
3) this is the body.htm
<html>
<head>
<title>body</title>
</head>
<body>
<p>this is the first page... call body.htm</p>
</body>
</html>
4) this is detail.htm
<html>
<head>
<title>detail</title>
</head>
<body>
<p>When the user click on Detail in the above menu, this page will be loaded
and
I want to force the scroll bar not to display...how???</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>following information is confidential... you not support to see...click
<a href="body.htm">back</a>
to previous page. so, have
to force the scroll bar not to disappear so that you can't scroll down...how
to
do this</p>
<p>confidential</p>
<p>confidential</p>
<p>confidential</p>
<p>confidential</p>
<p> </p>
</body>
</html>
> -----Original Message-----
> From: Shaun Steckley [SMTP:SSTECKLEY@P...]
> Sent: Thursday, March 22, 2001 9:49 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> Paste your HTML frameset page so we can take a look at what you have...
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Wednesday, March 21, 2001 7:59 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
>
> Hello Alex,
>
>
> Thanks for you time but I still got some doubt. Following is what I have:
>
> I have a frame called header. The initial page is menu.htm.
> The second frame called main. The initial page body.htm.
>
> When the frame is loaded, this is the two page appear on the screen. From
> the menu, use will choose to see other page and display on the second
> page.
> There is a page call detail.htm, and the page is very long. When the page
> is
> load and display on the screen, the scrollbar will appear. What I want to
> do
> is to force the scroll bar not to appear on the screen. So, where should I
> put the code <parent.frames.main.scrolling="no">? in the detail.htm page?
> I
> have tried but doesn't work, the scroll bar still appear. Please advise.
>
> Thanks.
> PHIL
>
>
> > -----Original Message-----
> > From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> > Sent: Wednesday, March 21, 2001 5:57 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> > I presume you know how to set up a frameset
> >
> > SRC is the file that is loaded into the frame, name is the identifier
> > which
> > will allow you to refer to the frame through code, or for hyperlinks
> >
> > <FRAMESET COLS="100,*">
> > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> > <FRAME SCROLLING="YES" SRC="main.htm" NAME="FRAME2">
> > </FRAMESET>
> >
> > The first frame will not have a scroll bar, the second one will. In
> order
> > to turn off the scroll bar in the second frame at some point after it
> has
> > loaded, use this code
> >
> > parent.frames.FRAME2.scrolling = "no"
> >
> > when you call the code is entirely up to you, depending on what you are
> > trying to do
> >
> > -----Original Message-----
> > From: philip.moh@a... [mailto:philip.moh@a...]
> > Sent: Wednesday, March 21, 2001 1:00 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> >
> > Hello Alex,
> >
> > Thanks for the tips. But could you explain a bit more on where should I
> > put
> > the code in the page? I copied and pasted the following code in page
> but
> > I
> > still got the scrollbar in runtime... how? BTW, what is the SRC and NAME
> > for
> > in the following code? And what is the second code for? Which one should
> I
> > use? Please advise, thanks.
> >
> > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> >
> >
> > parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> >
> >
> >
> > > -----Original Message-----
> > > From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> > > Sent: Tuesday, March 20, 2001 7:48 PM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] RE: Scrollbar
> > >
> > > define your frame like this
> > >
> > > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> > >
> > > and to change scrolling propery dynamically just do
> > >
> > > parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> > >
> > >
> > > -----Original Message-----
> > > From: philip.moh@a... [mailto:philip.moh@a...]
> > > Sent: Tuesday, March 20, 2001 1:26 AM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] Scrollbar
> > >
> > >
> > > Hello Experts,
> > >
> > > Anyone of you know how to disable/enable the frame scrollbar in code?
> > For
> > > example, my frame consist of two parts - header and body. Header will
> > > remaind static all the time whereelse body will change from time to
> > time.
> > > what I have to do is to force the scroll bar not to appear in the
> > certain
> > > page. Possible? Please advise....URGENT.
> > >
> > > Thanks in advance.
> > > PHIL
>
>
Message #9 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 22 Mar 2001 09:40:09 -0000
|
|
rather than using links to load the page in the main frame, use this
function:
function loadMainPage(sURL){
parent.frames.main.navigate(sURL);
parent.frames.main.scrolling="no";
}
I've not tried it, but as the scrolling is turned off after the page has
loaded, it should work...
-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: Thursday, March 22, 2001 12:59 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Scrollbar
Hello Alex,
Thanks for you time but I still got some doubt. Following is what I have:
I have a frame called header. The initial page is menu.htm.
The second frame called main. The initial page body.htm.
When the frame is loaded, this is the two page appear on the screen. From
the menu, use will choose to see other page and display on the second page.
There is a page call detail.htm, and the page is very long. When the page is
load and display on the screen, the scrollbar will appear. What I want to do
is to force the scroll bar not to appear on the screen. So, where should I
put the code <parent.frames.main.scrolling="no">? in the detail.htm page? I
have tried but doesn't work, the scroll bar still appear. Please advise.
Thanks.
PHIL
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> Sent: Wednesday, March 21, 2001 5:57 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> I presume you know how to set up a frameset
>
> SRC is the file that is loaded into the frame, name is the identifier
> which
> will allow you to refer to the frame through code, or for hyperlinks
>
> <FRAMESET COLS="100,*">
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> <FRAME SCROLLING="YES" SRC="main.htm" NAME="FRAME2">
> </FRAMESET>
>
> The first frame will not have a scroll bar, the second one will. In order
> to turn off the scroll bar in the second frame at some point after it has
> loaded, use this code
>
> parent.frames.FRAME2.scrolling = "no"
>
> when you call the code is entirely up to you, depending on what you are
> trying to do
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Wednesday, March 21, 2001 1:00 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
>
> Hello Alex,
>
> Thanks for the tips. But could you explain a bit more on where should I
> put
> the code in the page? I copied and pasted the following code in page but
> I
> still got the scrollbar in runtime... how? BTW, what is the SRC and NAME
> for
> in the following code? And what is the second code for? Which one should I
> use? Please advise, thanks.
>
> <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
>
>
> parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
>
>
>
> > -----Original Message-----
> > From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> > Sent: Tuesday, March 20, 2001 7:48 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> > define your frame like this
> >
> > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> >
> > and to change scrolling propery dynamically just do
> >
> > parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> >
> >
> > -----Original Message-----
> > From: philip.moh@a... [mailto:philip.moh@a...]
> > Sent: Tuesday, March 20, 2001 1:26 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Scrollbar
> >
> >
> > Hello Experts,
> >
> > Anyone of you know how to disable/enable the frame scrollbar in code?
> For
> > example, my frame consist of two parts - header and body. Header will
> > remaind static all the time whereelse body will change from time to
> time.
> > what I have to do is to force the scroll bar not to appear in the
> certain
> > page. Possible? Please advise....URGENT.
> >
> > Thanks in advance.
> > PHIL
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Message #10 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 22 Mar 2001 14:28:43 -0000
|
|
Phil,
it seems that this just does not work... the only way you can prevent
scrolling is to put scrolling="no" in the frame definition. Regardless of
what microsoft say, it does not seem to be possible to alter the scolling
property after the frameset has been created.
-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: Thursday, March 22, 2001 2:40 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Scrollbar
OK....
1) this is the index.htm:
<html>
<head>
<title>my frame</title>
</head>
<frameset rows="64,*">
<frame name="header" scrolling="no" noresize target="main" src="menu.htm">
<frame name="main" src="body.htm">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
2) this is the meun.htm:
<html>
<head>
<title>menu</title>
<base target="main">
</head>
<body>
<p><a href="detail.htm">Detail</a></p>
</body>
</html>
3) this is the body.htm
<html>
<head>
<title>body</title>
</head>
<body>
<p>this is the first page... call body.htm</p>
</body>
</html>
4) this is detail.htm
<html>
<head>
<title>detail</title>
</head>
<body>
<p>When the user click on Detail in the above menu, this page will be loaded
and
I want to force the scroll bar not to display...how???</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>following information is confidential... you not support to see...click
<a href="body.htm">back</a>
to previous page. so, have
to force the scroll bar not to disappear so that you can't scroll down...how
to
do this</p>
<p>confidential</p>
<p>confidential</p>
<p>confidential</p>
<p>confidential</p>
<p> </p>
</body>
</html>
> -----Original Message-----
> From: Shaun Steckley [SMTP:SSTECKLEY@P...]
> Sent: Thursday, March 22, 2001 9:49 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> Paste your HTML frameset page so we can take a look at what you have...
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Wednesday, March 21, 2001 7:59 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
>
> Hello Alex,
>
>
> Thanks for you time but I still got some doubt. Following is what I have:
>
> I have a frame called header. The initial page is menu.htm.
> The second frame called main. The initial page body.htm.
>
> When the frame is loaded, this is the two page appear on the screen. From
> the menu, use will choose to see other page and display on the second
> page.
> There is a page call detail.htm, and the page is very long. When the page
> is
> load and display on the screen, the scrollbar will appear. What I want to
> do
> is to force the scroll bar not to appear on the screen. So, where should I
> put the code <parent.frames.main.scrolling="no">? in the detail.htm page?
> I
> have tried but doesn't work, the scroll bar still appear. Please advise.
>
> Thanks.
> PHIL
>
>
> > -----Original Message-----
> > From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> > Sent: Wednesday, March 21, 2001 5:57 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> > I presume you know how to set up a frameset
> >
> > SRC is the file that is loaded into the frame, name is the identifier
> > which
> > will allow you to refer to the frame through code, or for hyperlinks
> >
> > <FRAMESET COLS="100,*">
> > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> > <FRAME SCROLLING="YES" SRC="main.htm" NAME="FRAME2">
> > </FRAMESET>
> >
> > The first frame will not have a scroll bar, the second one will. In
> order
> > to turn off the scroll bar in the second frame at some point after it
> has
> > loaded, use this code
> >
> > parent.frames.FRAME2.scrolling = "no"
> >
> > when you call the code is entirely up to you, depending on what you are
> > trying to do
> >
> > -----Original Message-----
> > From: philip.moh@a... [mailto:philip.moh@a...]
> > Sent: Wednesday, March 21, 2001 1:00 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> >
> > Hello Alex,
> >
> > Thanks for the tips. But could you explain a bit more on where should I
> > put
> > the code in the page? I copied and pasted the following code in page
> but
> > I
> > still got the scrollbar in runtime... how? BTW, what is the SRC and NAME
> > for
> > in the following code? And what is the second code for? Which one should
> I
> > use? Please advise, thanks.
> >
> > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> >
> >
> > parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> >
> >
> >
> > > -----Original Message-----
> > > From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> > > Sent: Tuesday, March 20, 2001 7:48 PM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] RE: Scrollbar
> > >
> > > define your frame like this
> > >
> > > <FRAME SCROLLING="NO" SRC="header.htm" NAME="FRAME1">
> > >
> > > and to change scrolling propery dynamically just do
> > >
> > > parent.frames.FRAME1.scrolling = "no" | "yes" | "auto"
> > >
> > >
> > > -----Original Message-----
> > > From: philip.moh@a... [mailto:philip.moh@a...]
> > > Sent: Tuesday, March 20, 2001 1:26 AM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] Scrollbar
> > >
> > >
> > > Hello Experts,
> > >
> > > Anyone of you know how to disable/enable the frame scrollbar in code?
> > For
> > > example, my frame consist of two parts - header and body. Header will
> > > remaind static all the time whereelse body will change from time to
> > time.
> > > what I have to do is to force the scroll bar not to appear in the
> > certain
> > > page. Possible? Please advise....URGENT.
> > >
> > > Thanks in advance.
> > > PHIL
>
>
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Message #11 by philip.moh@a... on Fri, 23 Mar 2001 08:43:11 +0800
|
|
Alex,
Sounds like we have to ask microsoft WHY the command doesn't work... or
check to their site for more info. Thanks for you help anyway.
Does anyone else know how to do this??
--
PHIL
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> Sent: Thursday, March 22, 2001 10:29 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> Phil,
>
> it seems that this just does not work... the only way you can prevent
> scrolling is to put scrolling="no" in the frame definition. Regardless of
> what microsoft say, it does not seem to be possible to alter the scolling
> property after the frameset has been created.
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Thursday, March 22, 2001 2:40 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
>
> OK....
>
> 1) this is the index.htm:
>
> <html>
>
> <head>
> <title>my frame</title>
> </head>
>
> <frameset rows="64,*">
> <frame name="header" scrolling="no" noresize target="main"
> src="menu.htm">
> <frame name="main" src="body.htm">
> <noframes>
> <body>
>
> <p>This page uses frames, but your browser doesn't support them.</p>
>
> </body>
> </noframes>
> </frameset>
>
> </html>
>
>
>
> 2) this is the meun.htm:
>
> <html>
>
> <head>
> <title>menu</title>
> <base target="main">
> </head>
>
> <body>
>
> <p><a href="detail.htm">Detail</a></p>
>
> </body>
>
> </html>
>
>
> 3) this is the body.htm
>
> <html>
>
> <head>
> <title>body</title>
> </head>
>
> <body>
>
> <p>this is the first page... call body.htm</p>
>
> </body>
>
> </html>
>
>
> 4) this is detail.htm
>
> <html>
>
> <head>
> <title>detail</title>
> </head>
>
>
> <body>
>
>
> <p>When the user click on Detail in the above menu, this page will be
> loaded
> and
> I want to force the scroll bar not to display...how???</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>following information is confidential... you not support to see...click
> <a href="body.htm">back</a>
> to previous page. so, have
> to force the scroll bar not to disappear so that you can't scroll
> down...how
> to
> do this</p>
> <p>confidential</p>
> <p>confidential</p>
> <p>confidential</p>
> <p>confidential</p>
> <p> </p>
>
> </body>
>
> </html>
>
>
>
>
>
>
>
>
>
>
> > -----Original Message-----
> > From: Shaun Steckley [SMTP:SSTECKLEY@P...]
> > Sent: Thursday, March 22, 2001 9:49 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> > Paste your HTML frameset page so we can take a look at what you have...
> >
> > -----Original Message-----
> > From: philip.moh@a... [mailto:philip.moh@a...]
> > Sent: Wednesday, March 21, 2001 7:59 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> >
> > Hello Alex,
> >
> >
> > Thanks for you time but I still got some doubt. Following is what I
> have:
> >
> > I have a frame called header. The initial page is menu.htm.
> > The second frame called main. The initial page body.htm.
> >
> > When the frame is loaded, this is the two page appear on the screen.
> From
> > the menu, use will choose to see other page and display on the second
> > page.
> > There is a page call detail.htm, and the page is very long. When the
> page
> > is
> > load and display on the screen, the scrollbar will appear. What I want
> to
> > do
> > is to force the scroll bar not to appear on the screen. So, where should
> I
> > put the code <parent.frames.main.scrolling="no">? in the detail.htm
> page?
> > I
> > have tried but doesn't work, the scroll bar still appear. Please advise.
> >
> > Thanks.
> > PHIL
Message #12 by "Tim Morford" <tmorf@c...> on Thu, 22 Mar 2001 21:17:26 -0500
|
|
I did some looking around i found nothing on this anywhere ... you can try
to take out the " " if that does not work try putting your files in a
include
tim
-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: Thursday, March 22, 2001 7:43 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Scrollbar
Alex,
Sounds like we have to ask microsoft WHY the command doesn't work... or
check to their site for more info. Thanks for you help anyway.
Does anyone else know how to do this??
--
PHIL
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]
> Sent: Thursday, March 22, 2001 10:29 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
> Phil,
>
> it seems that this just does not work... the only way you can prevent
> scrolling is to put scrolling="no" in the frame definition. Regardless of
> what microsoft say, it does not seem to be possible to alter the scolling
> property after the frameset has been created.
>
> -----Original Message-----
> From: philip.moh@a... [mailto:philip.moh@a...]
> Sent: Thursday, March 22, 2001 2:40 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Scrollbar
>
>
> OK....
>
> 1) this is the index.htm:
>
> <html>
>
> <head>
> <title>my frame</title>
> </head>
>
> <frameset rows="64,*">
> <frame name="header" scrolling="no" noresize target="main"
> src="menu.htm">
> <frame name="main" src="body.htm">
> <noframes>
> <body>
>
> <p>This page uses frames, but your browser doesn't support them.</p>
>
> </body>
> </noframes>
> </frameset>
>
> </html>
>
>
>
> 2) this is the meun.htm:
>
> <html>
>
> <head>
> <title>menu</title>
> <base target="main">
> </head>
>
> <body>
>
> <p><a href="detail.htm">Detail</a></p>
>
> </body>
>
> </html>
>
>
> 3) this is the body.htm
>
> <html>
>
> <head>
> <title>body</title>
> </head>
>
> <body>
>
> <p>this is the first page... call body.htm</p>
>
> </body>
>
> </html>
>
>
> 4) this is detail.htm
>
> <html>
>
> <head>
> <title>detail</title>
> </head>
>
>
> <body>
>
>
> <p>When the user click on Detail in the above menu, this page will be
> loaded
> and
> I want to force the scroll bar not to display...how???</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>hello</p>
> <p>following information is confidential... you not support to see...click
> <a href="body.htm">back</a>
> to previous page. so, have
> to force the scroll bar not to disappear so that you can't scroll
> down...how
> to
> do this</p>
> <p>confidential</p>
> <p>confidential</p>
> <p>confidential</p>
> <p>confidential</p>
> <p> </p>
>
> </body>
>
> </html>
>
>
>
>
>
>
>
>
>
>
> > -----Original Message-----
> > From: Shaun Steckley [SMTP:SSTECKLEY@P...]
> > Sent: Thursday, March 22, 2001 9:49 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> > Paste your HTML frameset page so we can take a look at what you have...
> >
> > -----Original Message-----
> > From: philip.moh@a... [mailto:philip.moh@a...]
> > Sent: Wednesday, March 21, 2001 7:59 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Scrollbar
> >
> >
> > Hello Alex,
> >
> >
> > Thanks for you time but I still got some doubt. Following is what I
> have:
> >
> > I have a frame called header. The initial page is menu.htm.
> > The second frame called main. The initial page body.htm.
> >
> > When the frame is loaded, this is the two page appear on the screen.
> From
> > the menu, use will choose to see other page and display on the second
> > page.
> > There is a page call detail.htm, and the page is very long. When the
> page
> > is
> > load and display on the screen, the scrollbar will appear. What I want
> to
> > do
> > is to force the scroll bar not to appear on the screen. So, where should
> I
> > put the code <parent.frames.main.scrolling="no">? in the detail.htm
> page?
> > I
> > have tried but doesn't work, the scroll bar still appear. Please advise.
> >
> > Thanks.
> > PHIL
Message #13 by "Tim Morford" <tmorf@c...> on Fri, 23 Mar 2001 06:20:20 -0500
|
|
the scrollbar scrolling="no" there remove the " " but i was just looking
over the code and the line frameset rows="64,*" the * is what is throwing me
... I am not expert with HTML but that might be the problem
her is an example of what i was talking about
<html>
<head>
<title></title>
<LINK rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="100"><!-- #include file="top.asp" --></td>
</tr>
</table>
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width=21%><!-- #include file="side.asp" --></td>
<td width=79% align=left valign=top>
<!-- Begin Code Here -->
<br>
<p class=heading> Welcome to Mohawk Valley Software</p>
<p class=std> We are nestled along the Mohawk River
located in
Fultonville, New York</p>
<p class=std> We specialize in <a
href=/software/software.asp>Custom Made Software</a>, <a
href=/networking/networking.asp>Local Area Networking</a>,<br>
<a
href=/networking/networking.asp>Wide Area Networking</a>, <a
href=networking/networking.asp>and Network Security</a></p>
<p> </p>
<p> </p>
<p> </p>
<br>
<p class=std> <b>Coming soon Low cost High Function E-Commerce
solutions!!!!</b></P>
<!-- End Data Here -->
</td>
</tr>
</table>
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width="600"> <!-- #include file="end.asp" --></td>
</tr>
</table>
</body>
</html>
THIS IS what it out puts
<html>
<head>
<title></title>
<LINK rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="100">
<table cellspacing=0 cellpadding=0 width=600 border=0>
<tr>
<td bgcolor="#333399" colspan=4 height="71">
<A href="/default.asp"><font size="6" color="#ffcc00"><b></b></a></font>
</td>
</tr>
<tr>
<td colspan=5 align="right">
<a href="/ContactUs.asp"><b>Contact Us</b></a>
</td>
</tr>
<tr bgcolor="#333399">
<td td colspan=5 align="center"><form action="/search/search.asp">
<input type="text" name="look_for">
<input type="image" src="/search/images/go.gif" align="middle" alt="Go"
border="0"></td>
</form>
</table>
<table width=600 border=0 cellspacing=0 cellpadding=0>
<TR><TD colspan=5 class=tableRed><A href="/default.asp">Home</a></td></tr>
</table></td>
</tr>
</table>
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width=21%>
<table cellspacing=0 cellpadding=0 width="100%" height="100%" border=0>
<tr>
<td bgcolor="#333399" valign=top class=smallYellow>
<br>
<br>
<br>
<center><p><b><A href=/software/software.asp
class=smallYellow>Software</b></A></p></center>
<center><p><b><A href=/networking/networking.asp
class=smallYellow>Networking</b></A></p></center>
<center><p><b><A href=/training/training.asp
class=smallYellow>Training</b></A></p></center>
<center><p><b><A href=/asp/asp.asp class=smallYellow>ASP
Code</b></A></p></center>
<center><p><b><A href=/nt/nt.asp class=smallYellow>NT
Stuff</b></A></p></center>
<center><p><b><A href=/theshow/theshow.asp class=smallYellow>The
Show</b></A></p></center>
<center><p><b><A href=/message/board.asp class=smallYellow>Message
Board</b></A></p></center>
<center><p><b><A href=/stuff/stuff.asp class=smallYellow>Stuff In the
Works</b></A></p></center>
</td>
</tr>
<tr><td bgcolor="#333399" valign=top><br>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD colspan=3 BGCOLOR="#333399" ALIGN="center"><FONT
COLOR="#ffcc00"><B>Take Our Poll:</B></FONT></TD>
</tr>
<TR>
<TD COLSPAN="3" BGCOLOR="#333399" ALIGN="center"><FONT
COLOR="#ffcc00">Would you be interested in
<br><b>E-commerce?</b></FONT></TD>
</TR>
<TR>
<TD COLSPAN="3" BGCOLOR="#333399" ALIGN="center">
<A HREF="/Default.asp?action=results&pid=1&vote=1"><b><FONT
COLOR="#ffcc00">Yes</A></FONT></b>
<A HREF="/Default.asp?action=results&pid=1&vote=2"><b><FONT
COLOR="#ffcc00">No</A></FONT></b>
</TD>
</TR>
<tr>
<TD BGCOLOR="#333399" ALIGN="center" colspan=3><A
HREF="/Default.asp?action=results&pid=1"><FONT COLOR="#ffcc00"
SIZE="-1">View Results</FONT></A></TD>
</TR>
</TABLE>
</td></tr>
<tr><TD bgcolor="#333399"> </td></tr>
<tr><TD bgcolor="#333399"> </td></tr>
<tr><TD bgcolor="#333399"> </td></tr>
<tr><TD bgcolor="#333399"> </td></tr>
<tr><td bgcolor="#333399">
</table>
</td>
<td width=79% align=left valign=top>
<!-- Begin Code Here -->
<br>
<p> </p>
<p> </p>
<p> </p>
<br>
<!-- End Data Here -->
</td>
</tr>
</table>
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width="600">
<table>
<tr>
<td>
</td>
<td>
<font color=#ffffff>
-------- -------- -------- --------
-------- -------- -------- --------
-------- -------- -------- --------
</font>
</td>
</tr>
<tr>
<td colspan=5 bgcolor=#000000></td>
</tr>
<tr>
<td colspan=5>
<br>
</td>
</tr>
<tr>
<td colspan=5 align=center>
<font face= tahoma size=1 color=#333399>
<a href="/privacy.asp</a><br>
Copyright &co
<br>
<br>
</font>
</td>
</tr>
</td>
</tr>
</table>
</body>
</html>
I hope this helps you
Let me know if you need more help
Tim
-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: Friday, March 23, 2001 4:21 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: [asp_web_howto]RE: Scrollbar
which " " you want me to take out?
Does anyone else got an idea of HOW TO SET THE SCROLLBAR ON/OFF??? It really
sound simple but Please!!!!!!!!!!!!!!!!!!!!!!!!HELP.
> -----Original Message-----
> From: Tim Morford [SMTP:tmorf@c...]
> Sent: Friday, March 23, 2001 10:17 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto]RE: Scrollbar
>
> I did some looking around i found nothing on this anywhere ... you can try
> to take out the " " if that does not work try putting your files in a
> include
>
>
> tim
Message #14 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Fri, 23 Mar 2001 12:08:10 -0000
|
|
* just means the rest of the screen. e.g. top frame is 64px, bottom frame
is all the rest of the screen. This is nothing to do with scrolling.
-----Original Message-----
From: Tim Morford [mailto:tmorf@c...]
Sent: Friday, March 23, 2001 11:20 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Scrollbar
the scrollbar scrolling="no" there remove the " " but i was just looking
over the code and the line frameset rows="64,*" the * is what is throwing me
... I am not expert with HTML but that might be the problem
|
|
 |