Click here to get back home

scrollbar won't add to popup window

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
scrollbar won't add to popup window darius 07-22-2004
Posted by darius on July 22, 2004, 1:57 pm
Please log in for more thread options
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=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,menubar=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,menubar=no,resizable=yes');"><
a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>




Posted by Steve Brereton on July 22, 2004, 5:06 pm
Please log in for more thread options

> 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=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,menubar=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,menubar=no,resizable=yes'
> );">< 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='+winl+',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...


Posted by DU on July 22, 2004, 9:25 pm
Please log in for more thread options
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,menubar=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,menubar=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,menubar=no,resizable=yes');"><
> a>comments</a></span><br />
> <!--COM_END-->
> </td>
> </tr>
> </table>
> </td>
> </tr>
> </table>
>
>


Similar ThreadsPosted
How do I pass a list of arguments from a popup window to the parent window? July 6, 2006, 4:49 am
code to popup link in new browser window January 2, 2005, 10:05 pm
HTML Form post to popup-window January 22, 2008, 10:41 pm
CSS popup tooltips June 15, 2005, 8:37 am
frame and scrollbar July 1, 2006, 5:55 am
animated gif stops when used as a link to a popup March 11, 2006, 11:48 am
Validation errors: Popup or errorline ? November 25, 2006, 7:19 pm
DIV Scrollbar problem in FireFox... May 23, 2005, 7:01 am
100% width element causes scrollbar in IE when dir=rtl December 14, 2007, 5:21 pm
Is there soemthing called modal popup windows? May 16, 2007, 8:36 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap