473,666 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

scrollbar won't add to popup window

Hello,

I seem to be having trouble with a rather simple problem. I am opening a new
window with the window.open command, and even though I set scrollbar=yes, I
can't seem to get the window to display a vertical scrollbar when the text
exceeds the height of the window i just openned (on a side note, ideally I
would like to just have a vertical scrollbar).

My code follows. Thank you,
~Dari

<table style='border:2 px inset;font-size:medium;' cellpadding="5" >
<tr>
<td border='0' bgcolor='#EEEEE 0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Docume nt.txt'>New_Tex t_Document.txt</a><br />
<a href='files/clonelink.gif'> clonelink.gif</a><br
/>
<a href='files/clonelink2.gif' >clonelink2.gif </a><br
/>
<!--REP_END-->
</td>
<td border='0' width="100" align="right">
<!--COM_START-->
<span style="cursor:h and"
onclick="window .open('files/comments/New_Text_Docume nt.txt.html',
'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> <
a>comments</a></span><br />
<span style="cursor:h and"
onclick="window .open('files/comments/clonelink.gif.h tml', 'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> <
a>comments</a></span><br />
<span style="cursor:h and"
onclick="window .open('files/comments/clonelink2.gif. html', 'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> <
a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>
Jul 23 '05 #1
4 7037
"darius" <da************ @yahoo.com> wrote in message
news:cd******** **@news.Stanfor d.EDU...
Hello,

I seem to be having trouble with a rather simple problem. I am opening a new window with the window.open command, and even though I set scrollbar=yes, I can't seem to get the window to display a vertical scrollbar when the text
exceeds the height of the window i just openned (on a side note, ideally I
would like to just have a vertical scrollbar).

My code follows. Thank you,
~Dari

<table style='border:2 px inset;font-size:medium;' cellpadding="5" >
<tr>
<td border='0' bgcolor='#EEEEE 0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Docume nt.txt'>New_Tex t_Document.txt</a><br />
<a href='files/clonelink.gif'> clonelink.gif</a><br
/>
<a href='files/clonelink2.gif' >clonelink2.gif </a><br />
<!--REP_END-->
</td>
<td border='0' width="100" align="right">
<!--COM_START-->
<span style="cursor:h and"
onclick="window .open('files/comments/New_Text_Docume nt.txt.html',
'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> < a>comments</a></span><br />
<span style="cursor:h and"
onclick="window .open('files/comments/clonelink.gif.h tml', 'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> < a>comments</a></span><br />
<span style="cursor:h and"
onclick="window .open('files/comments/clonelink2.gif. html', 'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> < a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>


Try the plural: "scrollbars=yes "
Jul 23 '05 #2
> Try the plural: "scrollbars=yes "


Sorry, that didn't help.
Jul 23 '05 #3
darius wrote:
Try the plural: "scrollbars=yes "

Sorry, that didn't help.


"scrollbars " not "scollbars"

Besides, you should not need to declare them, they should appear when
needed by default.
Mick
Jul 23 '05 #4
darius wrote:
I seem to be having trouble with a rather simple problem. I am opening a new
window with the window.open command, and even though I set scrollbar=yes, I
can't seem to get the window to display a vertical scrollbar when the text
exceeds the height of the window i just openned (on a side note, ideally I
would like to just have a vertical scrollbar).
[...]

<table style='border:2 px inset;font-size:medium;' cellpadding="5" >
<tr>
<td border='0' bgcolor='#EEEEE 0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Docume nt.txt'>New_Tex t_Document.txt</a><br />
<a href='files/clonelink.gif'> clonelink.gif</a><br
/>
<a href='files/clonelink2.gif' >clonelink2.gif </a><br
/>
<!--REP_END-->
</td>
<td border='0' width="100" align="right">
<!--COM_START-->
<span style="cursor:h and"
onclick="window .open('files/comments/New_Text_Docume nt.txt.html',
'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> <
Should be scrollbars=yes. toolbar=no and menubar=no are the defaults,
thus they can be omitted (making the code easier legible).
a>comments</a></span><br />
<span style="cursor:h and"
onclick="window .open('files/comments/clonelink.gif.h tml', 'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> <
a>comments</a></span><br />
<span style="cursor:h and"
onclick="window .open('files/comments/clonelink2.gif. html', 'NewWindow',
'height=400,wid th=500,scollbar =yes,toolbar=no ,menubar=no,res izable=yes');"> <
a>comments</a></span><br />
<!--COM_END-->
You may want to stop this nonsense of abusing span elements as links
and using "a" elements without both "href" and "id" attribute.

<http://validator.w3.or g/>

And since the code shows a pattern, it would be wise to define a method:

function popup(sURI)
{
var w = window.open(
sURI,
'NewWindow',
'height=400,wid th=500,scrollba rs=yes,resizabl e=yes');
return !w;
}

<a href="files/comments/New_Text_Docume nt.txt.html"
onclick="return popup(this.href );">comments</a><br/>
...
</td>
</tr>
</table>
</td>
</tr>
</table>


So let me get this straight: You have a table that contains *one* row that
contains *one* cell that contains *one* table that contains *one* row that
contains *two* cells?

You may want to install Brain 1.0 before coding. A table is a table is a
table. [psf 3.8] Never ever use tables for layout purposes alone. Use CSS
instead. And if you have lists, do not abuse the "br" element but use list
elements like this (remove line-wraps within attribute values for XHTML):

<div style="border:2 px inset; background-color:#fff; color:#000;
font-size:medium;">
<ul style="width:26 0px; float:left; margin-right:5px; list-style:none">
<li><a ...>...</a></li>
<li>...</li>
</ul>

<ul style="width:10 0px; float:left; list-style:none">
<li style="text-align:right"><a ...>...</a></li>
<li style="text-align:right">.. .</li>
</ul>
</div>

(You may want to learn CSS and use a document-global stylesheet instead of
the "style" attributes.)
HTH

PointedEars
Jul 23 '05 #5

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

Similar topics

2
11001
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...
2
12453
by: darius | last post by:
Hello, I seem to be having trouble with a rather simple problem. I am opening a new window with the window.open command, and even though I set scrollbar=yes, I can't seem to get the window to display a vertical scrollbar when the text exceeds the height of the window i just openned (on a side note, ideally I would like to just have a vertical scrollbar). My code follows. Thank you, ~Dari
4
3785
by: anna | last post by:
How to tell if a horizontal scrollbar is present? I only want to use scrollTo if horizontal scrollbar is present. window.scrollbars.visibility doesn't specify which scrollbar is present, so it gives a false result if there is vertical scrollbar but not horizontal scrollbar. TIA, Anna
15
10089
by: H00ner | last post by:
Hello All Hope you can help Been pulling my hair out about a popup problem in ASP.NET. One of the forms i wrote requires the user to select a product from a list in a popup web form. the popup has a DataGrid on it and the page.load function DataBinds as you'd expect. I have Code-Behind in C# to emit a call to a JavaScript function which
2
17636
by: anx | last post by:
I've got a grid-managed frame, containing a column of Labels, and a corresponding column of Entry widgets. I'd like to be able to display dozens, or even hundreds of rows, and use a vertical scrollbar to scroll through them in the frame. So far i can get a scrollbar to display, but it won't scroll anything. So that's definately wrong. And the columns just chop off at the bottom of the frame, but resizing the window won't make the frame...
4
2434
by: Richard | last post by:
Hi, ich verwende folgenden Code, den ich im Internet gefunden habe, um Informationen auf Anfrage in Popupfenstern zu öffnen: // Script by Thomas Stich // http://www.stichpunkt.de/beitrag/popup.html // use it if you like it // // <a href="html-or.jpg" onclick="return popup(this,123,456)"
5
1773
by: ryanmhuc | last post by:
Is it possible to make the scrollbar appear on a page which is NOT A POPUP? On IE the scollbar space is always reserved or appears even if not used. In Firefox it does not exist unless the page's window is larger then the viewable area. This causes the page to jump left whenever you go from a page without a scollbar to a page with a scollbar in Firefox. So i would like to have a piece of javascript that always enables the
0
8440
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
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
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...
1
8549
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
7378
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...
0
5661
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();...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.