473,796 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Frames - no scrollbar

Hi all,

I have a frame layout of my site as follows:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>WikiTech </title>
</head>
<frameset id="fstSiteLayo ut" rows="115,*,22" bordercolor="#d cdcdc"
frameborder="ye s" framespacing="1 ">
<frame id="frmMastHead Frame" scrolling="no" noresize
target="frmCont entFrame" src="./Aspx_Data/WikiTech_Site/masthead.aspx"
/>
<frameset id="fstMainLayo ut" cols="216,*" frameborder="ye s"
framespacing="3 ">
<frameset id="fstNavigati onLayout" rows="102,*"
framespacing="0 " frameborder="no ">
<frame id="frmQuickSea rchFrame" scrolling="no"
src="./Aspx_Data/WikiTech_Site/quicksearch.asp x" />
<frame id="frmNavTreeF rame" scrolling="auto "
target="frmCont entFrame" src="./Aspx_Data/WikiTech_Site/navtree.aspx"
/>
</frameset>
<frame id="frmContentF rame" frameborder="no "
bordercolor="#0 03399" src="./Aspx_Data/WikiTech_Site/main.aspx" />
</frameset>
<frame id="frmDiscussT hreadFrame" scrolling="no" noresize
target="frmCont entFrame"
src="./Aspx_Data/WikiTech_Site/discussthread.a spx" />
</frameset>
</html>

Then on the discussthread.a spx page (frame id of
"frmDiscussThre adFrame"), there is a button there that when clicked, it
will call the javascript function below:

function jsfToggleDiscus sionFrame()
{
var fstSiteLayout =
window.parent.d ocument.getElem entById("fstSit eLayout");
var frmDiscussThrea dFrame =
window.parent.d ocument.getElem entById("frmDis cussThreadFrame ");
var intRowSize =
fstSiteLayout.r ows.substring(f stSiteLayout.ro ws.lastIndexOf( ',') + 1);
if (intRowSize != 22)
{
fstSiteLayout.r ows="115,*,22";
frmDiscussThrea dFrame.scrollin g="no";
frmDiscussThrea dFrame.noResize =true;

}
else
{
fstSiteLayout.r ows="115,*,115" ;
frmDiscussThrea dFrame.scrollin g="auto";
frmDiscussThrea dFrame.noResize =false;

}
}

The javascript function works on expanding & restoring the
"frmDiscussThre adFrame" frame without a problem.

My problem is that when the frame is on "expanded" form, scrollbars
wont show up, even if the discussthread.a spx page has a lot of content
in it. I'm really in a stump here.

Tha javascript code looks correct though:
fstSiteLayout.r ows="115,*,115" ;
frmDiscussThrea dFrame.scrollin g="auto";
frmDiscussThrea dFrame.noResize =false;
I've tried frmDiscussThrea dFrame.scrollin g="yes"; too but still,
scrollbar for the discussthread.a spx page won't show up.

What I notice is that when the frame definition of the frame id:
"frmDiscussThre adFrame" has been remove of the scrolling="no" tag, the
javascript works! I will have scrollbars when on "expanded" form.

<frame id="frmDiscussT hreadFrame" noresize target="frmCont entFrame"
src="./Aspx_Data/WikiTech_Site/discussthread.a spx" />

So my impression on this is that you cannot define the javascript
frmDiscussThrea dFrame.scrollin g="auto"; or
frmDiscussThrea dFrame.scrollin g="yes"; on demand.

Is this true? Or I've made a mistake somewhere?

Thanks,
Henry :)

Dec 3 '06 #1
4 9417
ASM
wardemon a écrit :
>
function jsfToggleDiscus sionFrame()
{
var fstSiteLayout =
window.parent.d ocument.getElem entById("fstSit eLayout");
var frmDiscussThrea dFrame =
window.parent.d ocument.getElem entById("frmDis cussThreadFrame ");
var intRowSize =
fstSiteLayout.r ows.substring(f stSiteLayout.ro ws.lastIndexOf( ',') + 1);
if (intRowSize != 22)
{
fstSiteLayout.r ows="115,*,22";
frmDiscussThrea dFrame.scrollin g="no";
frmDiscussThrea dFrame.noResize =true;
This last line would have to mean nothing
(not important as you want resising)
}
else
{
fstSiteLayout.r ows="115,*,115" ;
frmDiscussThrea dFrame.scrollin g="auto";
frmDiscussThrea dFrame.noResize =false;
Wouldn't it have to be :
frmDiscussThrea dFrame.noresize =false;
}
}

The javascript function works on expanding & restoring the
"frmDiscussThre adFrame" frame without a problem.
a chance ?
My problem is that when the frame is on "expanded" form, scrollbars
wont show up, even if the discussthread.a spx page has a lot of content
in it. I'm really in a stump here.

Tha javascript code looks correct though:
fstSiteLayout.r ows="115,*,115" ;
frmDiscussThrea dFrame.scrollin g="auto";
frmDiscussThrea dFrame.noResize =false;
try :
frmDiscussThrea dFrame.removeAt tribute("noresi se");

and don't forget to set it back in first condition
frmDiscussThrea dFrame.setAttri bute("noresise" ,"noresize") ;
or ?
frmDiscussThrea dFrame.setAttri bute("noresise" ,"true");
I've tried frmDiscussThrea dFrame.scrollin g="yes"; too but still,
So my impression on this is that you cannot define the javascript
frmDiscussThrea dFrame.scrollin g="auto"; or
frmDiscussThrea dFrame.scrollin g="yes"; on demand.
and with setAttribute ?
frmDiscussThrea dFrame.setAttri bute("scrolling ","yes");


--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 3 '06 #2
Hi,
Thanks for the tip. I've tried your suggestions but still it wont
work. Here's a quick excersise example of my problem:
I still can't have the noresize and the scrolling property of the
frame object to work. I'm using IE6 on Windows XP Service Pack 2

Thanks,
Henry :)

framed_site.htm l
======
<html>
<frameset cols="50%,50%">
<frame id="leftFrame" src="frame_scro ll.htm">
<frame id="rightFrame " noresize scrolling="no" src="frame_a.ht m">
</frameset>
</html>

frame_scroll.ht m
=======
<html>
<head>
<script type="text/javascript">
function enableScrolling ()
{
window.parent.d ocument.getElem entById("rightF rame").scrollin g="yes";
window.parent.d ocument.getElem entById("rightF rame").noresize =false;
}
function disableScrollin g()
{
window.parent.d ocument.getElem entById("rightF rame").scrollin g="no";
window.parent.d ocument.getElem entById("rightF rame").noresize =true;
}
</script>
</head>
<body>
<input type="button" onclick="enable Scrolling()" value="Scroll bars &
Resize" />
<input type="button" onclick="disabl eScrolling()" value="No scroll bars
& NoResize" />
</body>
</html>
frame_a.htm
=========
<html>
<head>
</head>
<body>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
Some Text Here <br>
</body>
</html>

Dec 4 '06 #3
ASM
wardemon a écrit :
I still can't have the noresize and the scrolling property of the
frame object to work. I'm using IE6 on Windows XP Service Pack 2
I'm very sorry for you.

I think you'll have to move border inter-frames to excite IE :-)
(Opera needs that too)
(Safari and iCab do nothing with theses scroll and co)

framed_site.htm l
======
<html>
<frameset id="general" cols="50%,50%">
<frame id="leftFrame" src="frame_scro ll.htm">
<frame id="rightFrame " noresize scrolling="no" src="frame_a.ht m">
</frameset>
</html>

frame_scroll.ht m
=======
<html>
<head>
<script type="text/javascript">
function enableScrolling ()
{
var target = parent.document .getElementById ("rightFrame ");
target.scrollin g='yes';
target.removeAt tribute('noresi ze');
// move your bottom you IE and others !
parent.document .getElementById ("general").set Attribute('cols ','51%,49%');
setTimeout(
'parent.documen t.getElementByI d("general").se tAttribute("col s","50%,50%" )',
50);
}
function disableScrollin g()
{
var target = parent.document .getElementById ("rightFrame ");
target.setAttri bute('noresize' ,true);
// or ?
// target.noresize =true;
target.scrollin g='no';
// move your bottom you IE and others !
parent.document .getElementById ("general").set Attribute('cols ','51%,49%');
setTimeout(
'parent.documen t.getElementByI d("general").se tAttribute("col s","50%,50%" )',
50);
}
</script>
</head>
<body>
<input type="button" onclick="enable Scrolling()" value="Scroll bars &
Resize" />
<input type="button" onclick="disabl eScrolling()" value="No scroll bars
& NoResize" />
</body>
</html>
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 4 '06 #4
found the answer by using document.body.s croll

function jsfToggleDiscus sionFrame()
{
var fstSiteLayout =
window.parent.d ocument.getElem entById("fstSit eLayout");
var frmDiscussThrea dFrame =
window.parent.d ocument.getElem entById("frmDis cussThreadFrame ");
var intRowSize =
fstSiteLayout.r ows.substring(f stSiteLayout.ro ws.lastIndexOf( ',') + 1);
if (intRowSize != 22)
{
fstSiteLayout.r ows="115,*,22";
frmDiscussThrea dFrame.scrollin g="no"; //does not work for some
reason
frmDiscussThrea dFrame.noResize =true; //disables resizing of
discussion frame
document.body.s croll = "no"; //hides scrollbars
}
else
{
fstSiteLayout.r ows="115,*,115" ;
frmDiscussThrea dFrame.scrollin g="auto"; //does not work for
some reason
frmDiscussThrea dFrame.noResize =false; //enable resizing of
discussion frame
document.body.s croll = "yes"; //displays scrollbars
}
}

Dec 7 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
11017
by: Don Schneider | last post by:
I tried to setup a frameset which consists of 4 different subframes. Each of these subframes should fetch a different web page from the internet and display it completely (!). BUT: the vertical size should be undefined. Depending on the retrieved (lets say 2nd) webpage the frame should take as much space as it needs to display the whole sub web page without vertical scrollbar. If I implement it like below a vertical scrollbar for each of...
7
2463
by: ohaya | last post by:
Hi, I have an HTML page that has a single FRAMESET and several FRAMEs on it. One of the FRAMEs contains a page with a table in it. The problem that I'm running into is that when the page is viewed with IE, everything looks fine, but, for some reason, it's possible to scroll the contents of the frame with the table in it, even though we've turned off the scrollbar.
1
3906
by: Carol Wang | last post by:
I've never used frames due to the many reasons we all know that made them evil, but that doesn't mean there weren't some things about them that I liked. I'm interested in creating a CSS based page with fixed top and bottom sections (right, like frames) and a middle that scrolls. Absolutely (position: fixed) positioned top and bottom handles the header and footer sections, but I'm having some trouble with the middle. My initial...
14
33813
by: x | last post by:
Greetings everyone: I am trying to get CSS to work with a framed web page, but I cannot. Does anyone know the syntax required in a CSS specification to specify attributes of the frames? Ideally, I want to be able to change the border thickness, colour, etc. Additionally, does anyone know of some comprehensive examples/tutorial
7
26050
by: Sujan | last post by:
Hello all, Is it possible to remove scrollbar(s) without using frames. Is there any code which could be applied in body tag to remove scrollbar(s). Thanks in adv, Sujan
2
1477
by: C P | last post by:
I'm trying to build a custom web control and I know that frames aren't a great idea, but I'm not clear on how else to get what I'd like. I'd like a tree (for navigation) in a left hand pane, and probably a grid (or dynamically created HTML with comboboxes and text) in a right hand pane. Ideally there would be a splitter of some sort between the two panes - much like http://msdn.microsoft.com/library/default.asp. A key problem that frames...
3
2118
by: jm | last post by:
I have a master framesetpage that calls two .aspx pages. Each page needs parameters passed to it. The left side is a treeview. The right side is the detail. I cannot find an asp:frame or the like. I need to be able to have the master frameset so that when it initially pulls up the two source frames it sends them the parameter in the querystring. Make Sense?
14
3958
by: Michael Weis | last post by:
Hello all, as a non-professional in these things, I searched for this topic but found no satisfying answer: I have to create a site with 3 frames. (Please no diskussion about the sense of using frames...) The main frame has to show a vertical scrollbar if content is bigger than one display page. This works well, but:
56
3874
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea as how to proceed? If you need any other information then please let me know.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10239
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10190
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9057
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4122
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.