473,388 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

force maximised window?

Hello,

Can I use JavaScript to force a maximised window ?
Thanks
Nov 2 '05 #1
17 1815
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

Nov 2 '05 #2
Geoff Cox wrote:
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.
Nov 2 '05 #3
On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon
<sm*******@yahoo.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...

Cheers

Geoff

Nov 2 '05 #4
On 2 Nov 2005 11:04:07 -0800, "bobzimuta" <ej******@gmail.com> wrote:
i haven't tried this, but maybe:

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

Geoff
or possibly

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

If anything, check out the window and screen objects


Nov 2 '05 #5

"Geoff Cox" <ge*******@notquitecorrectfreeuk.com> wrote in message
news:54********************************@4ax.com...
On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon
<sm*******@yahoo.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.
Nov 2 '05 #6

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 !!
Nov 2 '05 #7
On Wed, 02 Nov 2005 22:11:44 GMT, "Zoe Brown"
<zo***********@N-O-S-P-A-A-Mtesco.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?

Cheers

Geoff

Nov 2 '05 #8
bobzimuta wrote:
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
Nov 2 '05 #9
Lee
Zoe Brown said:


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 !!


I really hate it when a web developer thinks that just because we're
on the same intranet, that I must have the same size monitor and the
same browser settings. Some of us have larger monitors than the web
developers, because it's required for our jobs. Some have large fonts
because they don't see well.

Nobody should ever assume that they have absolute control over the
users browsing environment.

Nov 2 '05 #10
Geoff Cox wrote:
On Wed, 02 Nov 2005 22:11:44 GMT, "Zoe Brown"
<zo***********@N-O-S-P-A-A-Mtesco.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
Nov 3 '05 #11
Zoe Brown wrote:
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.


If you have such control over the user then why even bother with
designing a GUI in a web environment? Just start a normal windows
application.
I think the whole article
is a little out of date !!


Actually those articles are too late and should have been written from
day one.
Nov 3 '05 #12
On Thu, 03 Nov 2005 03:55:57 GMT, RobG <rg***@iinet.net.au> wrote:

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>


Thanks a lot Rob - the onResize() and re-setting the slider solved the
problem !

Cheers

Geoff

Nov 3 '05 #13

"Robert" <ro****@noreply.x> wrote in message
news:43***********************@news.xs4all.nl...
Zoe Brown wrote:
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.


If you have such control over the user then why even bother with designing
a GUI in a web environment? Just start a normal windows application.


that is a good point, but the answer is why not. Plenty of companies use
web technology simple cos they have them available and they are cheap.

Nov 4 '05 #14

"Lee" <RE**************@cox.net> wrote in message
news:dk********@drn.newsguy.com...
Zoe Brown said:


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 !!


I really hate it when a web developer thinks that just because we're
on the same intranet, that I must have the same size monitor and the
same browser settings. Some of us have larger monitors than the web
developers, because it's required for our jobs. Some have large fonts
because they don't see well.

Nobody should ever assume that they have absolute control over the
users browsing environment.


except of course when they actually do. Consider a subscription only site
where the subscribers pay for a particular experience and in return the
developers request they have certain settings on the desktop

Nov 4 '05 #15
Lee
Zoe Brown said:
Nobody should ever assume that they have absolute control over the
users browsing environment.


except of course when they actually do. Consider a subscription only site
where the subscribers pay for a particular experience and in return the
developers request they have certain settings on the desktop


That's not having control over the environment.
That's simply saying that if you don't using the settings that
I want you to use, you're not allowed to pay me any money.
Pretty stupid business model.

Nov 4 '05 #16

"Lee" <RE**************@cox.net> wrote in message
news:dk********@drn.newsguy.com...
Zoe Brown said:
Nobody should ever assume that they have absolute control over the
users browsing environment.


except of course when they actually do. Consider a subscription only site
where the subscribers pay for a particular experience and in return the
developers request they have certain settings on the desktop


That's not having control over the environment.
That's simply saying that if you don't using the settings that
I want you to use, you're not allowed to pay me any money.
Pretty stupid business model.


Not if it is at the customers request. Customers request a product to be
delivered over the interenet that does ABC and in return they will pay and
ensure that XYZ is correct on their desktop.
Nov 4 '05 #17
Lee
Zoe Brown said:


"Lee" <RE**************@cox.net> wrote in message
news:dk********@drn.newsguy.com...
Zoe Brown said:
Nobody should ever assume that they have absolute control over the
users browsing environment.

except of course when they actually do. Consider a subscription only site
where the subscribers pay for a particular experience and in return the
developers request they have certain settings on the desktop


That's not having control over the environment.
That's simply saying that if you don't using the settings that
I want you to use, you're not allowed to pay me any money.
Pretty stupid business model.


Not if it is at the customers request. Customers request a product to be
delivered over the interenet that does ABC and in return they will pay and
ensure that XYZ is correct on their desktop.


Nov 7 '05 #18

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

Similar topics

1
by: brian | last post by:
Hi, I am beginner using Python 1.52, GTK 1.2.10, and Glade .0.6.2 to develop a gui which will kick off various scripts. After checking some configurations I would like to pop up a window...
3
by: Paul | last post by:
Hi, I'm using a little javascript to help my site's design to fit the visitor's entire browser window. Everything works great apart from one problem. If a visitor first loads the page and the...
3
by: Steve | last post by:
I want to force a window to scroll and am finding this to be an impossibly difficult task. First I tried using the API functions ScrollWindow and ScrollWindowEx but they do not work. The portion...
5
by: annagel | last post by:
I am looking for a way to force a Tkinter window into focus on a system level. I know the force focus method should bring one window of my application into focus, but it seems I need to have some...
1
by: mano | last post by:
hi All. I am Mano.I don't known javascript. 1. so I want one of u to figure out how to restrict access to just 1 URL from IE and also how do u open in the maximized mode if they close the...
1
by: dev175 | last post by:
hi i need to know how to force opening a hyper link in a new window because when i use window.open() in internet explorer the hyper link gets opened in a new window but in Firefox the hyper link...
2
by: Lewe22 | last post by:
I have designed a database that loads with a main switchboard in Maximised view. This is important, to fit all the relevant information onto the form. My only problem is that when opening new...
5
by: gnaniyar | last post by:
How to find a window sate in Java Script ? I want to know whether the window is maximized or minimized ?
2
by: Samuel | last post by:
I have some questions that are sort of connected. I use Access 2003. Is it possible to set some properties that can make the Access window open at a particular size? Is it possible to make a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.