By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,647 Members | 1,618 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,647 IT Pros & Developers. It's quick & easy.

scrollbar won't add to popup window

P: n/a
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:2px inset;font-size:medium;' cellpadding="5">
<tr>
<td border='0' bgcolor='#EEEEE0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Document.txt'>New_Text_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:hand"
onclick="window.open('files/comments/New_Text_Document.txt.html',
'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink2.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"darius" <da************@yahoo.com> wrote in
news:cd**********@news.Stanford.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:2px inset;font-size:medium;' cellpadding="5">
<tr>
<td border='0' bgcolor='#EEEEE0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Document.txt'>New_Text_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:hand"
onclick="window.open('files/comments/New_Text_Document.txt.html',
'NewWindow',
'height=400,width= 500,scollbar=yes,toolbar=no,menubar=no,resizable=y es' );">< a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink.gif.html', 'NewWindow',
'height=400,width= 500,scollbar=yes,toolbar=no,menubar=no,resizable=y es' );">< a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink2.gif.html',
'NewWindow',
'height=400,width= 500,scollbar=yes,toolbar=no,menubar=no,resizable=y es' );">< a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>


I've always used:
<script language="javascript">

<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'status=yes
'+'height='+h+',width='+w+',top='+wint+',left='+wi nl+',scrollbars='+scro
l
l+''; new_win = window.open(mypage, myname, winprops);
new_win.window.focus();
}
// End -->
</script>
or a variant thereof, and always get scrollbars if I've mis-sized the
window to the page content...
Jul 20 '05 #2

P: n/a
DU
darius wrote:
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,

It's scrollbars=yes and not scollbar=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

You're using tables (nested tables on top of that) for non-tabular data.

DU
<table style='border:2px inset;font-size:medium;' cellpadding="5">
<tr>
<td border='0' bgcolor='#EEEEE0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Document.txt'>New_Text_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:hand"
onclick="window.open('files/comments/New_Text_Document.txt.html',
'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink2.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.