HighDots Forums  

force maximised window?

Javascript JavaScript language (comp.lang.javascript)


Discuss force maximised window? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Geoff Cox
 
Posts: n/a

Default force maximised window? - 11-02-2005 , 01:52 PM






Hello,

Can I use JavaScript to force a maximised window ?


Thanks

Reply With Quote
  #2  
Old   
bobzimuta
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 02:04 PM






i haven't tried this, but maybe:

window.resizeTo(window.screen.availWidth, window.screen.availHeight);

or possibly

window.resizeTo(window.screen.width, window.screen.height);

If anything, check out the window and screen objects


Reply With Quote
  #3  
Old   
Stewart Gordon
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 02:08 PM



Geoff Cox wrote:
Quote:
Hello,

Can I use JavaScript to force a maximised window ?
No.

http://webtips.dan.info/force.html

Stewart.

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS-
PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.


Reply With Quote
  #4  
Old   
Geoff Cox
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 02:54 PM



On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon
<smjg_1998 (AT) yahoo (DOT) com> wrote:

Quote:
Geoff Cox wrote:
Hello,

Can I use JavaScript to force a maximised window ?

No.

http://webtips.dan.info/force.html

Stewart,

I accept that this would not normally be a good idea but I would be
using it for a small number of people for whom it might improve the
situation.

The reason for perhaps using it is that I have a slider with a
pointer. If the user starts with a minimised window and then maximises
it, the pointer image stays where it is and is thus in the wrong
position for the maximised window...

Cheers

Geoff



Reply With Quote
  #5  
Old   
Geoff Cox
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 03:20 PM



On 2 Nov 2005 11:04:07 -0800, "bobzimuta" <ejmalone (AT) gmail (DOT) com> wrote:

Quote:
i haven't tried this, but maybe:

window.resizeTo(window.screen.availWidth, window.screen.availHeight);
this does the trick - thanks,

Geoff
Quote:
or possibly

window.resizeTo(window.screen.width, window.screen.height);

If anything, check out the window and screen objects


Reply With Quote
  #6  
Old   
Zoe Brown
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 05:11 PM




"Geoff Cox" <geoff.cox (AT) notquitecorrectfreeuk (DOT) com> wrote

Quote:
On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon
smjg_1998 (AT) yahoo (DOT) com> wrote:

Geoff Cox wrote:
Hello,

Can I use JavaScript to force a maximised window ?

No.

http://webtips.dan.info/force.html


Stewart,

I accept that this would not normally be a good idea but I would be
using it for a small number of people for whom it might improve the
situation.

The reason for perhaps using it is that I have a slider with a
pointer. If the user starts with a minimised window and then maximises
it, the pointer image stays where it is and is thus in the wrong
position for the maximised window...
move the image when the window is resized.




Reply With Quote
  #7  
Old   
Zoe Brown
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 05:14 PM




Quote:
Can I use JavaScript to force a maximised window ?

No.

http://webtips.dan.info/force.html
Those *tips* are very small minded. What if the web designer has absolute
control over the users browsing environment ? Perhaps the *site* is an
intranet and all desktops have the same settings. I think the whole article
is a little out of date !!




Reply With Quote
  #8  
Old   
Geoff Cox
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 05:21 PM



On Wed, 02 Nov 2005 22:11:44 GMT, "Zoe Brown"
<zoenaomibrown (AT) N-O-S-P-A-A-Mtesco (DOT) net> wrote:

Quote:
The reason for perhaps using it is that I have a slider with a
pointer. If the user starts with a minimised window and then maximises
it, the pointer image stays where it is and is thus in the wrong
position for the maximised window...

move the image when the window is resized.
Zoe,

Not sure what you mean re "move the image" ?

I had thought that perhaps I need to "refresh" the page if the user
resizes the window as that does put the pointer image back in the
right place.

How do I detect a change in size and then force a refresh?

Cheers

Geoff





Reply With Quote
  #9  
Old   
David Dorward
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 06:05 PM



bobzimuta wrote:

Quote:
window.resizeTo(window.screen.availWidth, window.screen.availHeight);
Argh! http://dorward.me.uk/tmp/fullscreen.jpeg




--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #10  
Old   
RobG
 
Posts: n/a

Default Re: force maximised window? - 11-02-2005 , 10:55 PM



Geoff Cox wrote:
Quote:
On Wed, 02 Nov 2005 22:11:44 GMT, "Zoe Brown"
zoenaomibrown (AT) N-O-S-P-A-A-Mtesco (DOT) net> wrote:

The reason for perhaps using it is that I have a slider with a
pointer. If the user starts with a minimised window and then maximises
it, the pointer image stays where it is and is thus in the wrong
position for the maximised window...
move the image when the window is resized.

Zoe,

Not sure what you mean re "move the image" ?

I had thought that perhaps I need to "refresh" the page if the user
resizes the window as that does put the pointer image back in the
right place.

How do I detect a change in size and then force a refresh?
You don't need to 'force a refresh', just update the location of the
slider(s):

<URL:http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/handlers.html#1121061>




--
Rob


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.