JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 2nd, 2007, 10:11 PM
Usagi Usagi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 1 Usagi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 50 sec
Reputation Power: 0
Thumbs up Adding a scrollbar to a resized window

I found some code to resize an existing window but after I resize it I need to add a scrollbar. How can I do this?

Code:
	<script language="JavaScript"><!--

	if (window.resizeTo) self.resizeTo(300,530);

	//--></script>


I tried adding this right under the resizing line but it doesn't work:
self.scrollbars.visible = true;
location.refresh() ;
There still is no scrollbar

In my final code, which includes some PHP, I made the ability to enlarge or shrink the window. In the shrunken form I'll need to remove the scrollbar.

Thanks
Usagi

Reply With Quote
  #2  
Old December 7th, 2007, 09:58 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 552 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 33 sec
Reputation Power: 9
scrollbar

Hi Usagi, welcome to the forums,
AFAIK, (and I may be wrong), scrollbars do not have a visible property. Either they're there or not. Try
Code:
self.scrollbars = true;
__________________
WP plugins - Error Reporting, Clean Options
http://www.mittineague.com/dev/er.php
http://www.mittineague.com/dev/co.php

Reply With Quote
  #3  
Old December 7th, 2007, 10:04 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 552 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 33 sec
Reputation Power: 9
scrollbar

Hi Usagi, welcome to the forums,
AFAIK, (and I may be wrong), scrollbars do not have a visible property. Either they're there or not (when the content requires them). Try
Code:
self.scrollbars = true;

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Adding a scrollbar to a resized window


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap