Connecting Tech Pros Worldwide Forums | Help | Site Map

force maximised window?

Geoff Cox
Guest
 
Posts: n/a
#1: Nov 2 '05
Hello,

Can I use JavaScript to force a maximised window ?


Thanks

bobzimuta
Guest
 
Posts: n/a
#2: Nov 2 '05

re: force maximised window?


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

Stewart Gordon
Guest
 
Posts: n/a
#3: Nov 2 '05

re: force maximised window?


Geoff Cox wrote:[color=blue]
> Hello,
>
> Can I use JavaScript to force a maximised window ?[/color]

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.
Geoff Cox
Guest
 
Posts: n/a
#4: Nov 2 '05

re: force maximised window?


On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon
<smjg_1998@yahoo.com> wrote:
[color=blue]
>Geoff Cox wrote:[color=green]
>> Hello,
>>
>> Can I use JavaScript to force a maximised window ?[/color]
>
>No.
>
>http://webtips.dan.info/force.html
>[/color]

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

Geoff Cox
Guest
 
Posts: n/a
#5: Nov 2 '05

re: force maximised window?


On 2 Nov 2005 11:04:07 -0800, "bobzimuta" <ejmalone@gmail.com> wrote:
[color=blue]
>i haven't tried this, but maybe:
>
>window.resizeTo(window.screen.availWidth, window.screen.availHeight);[/color]

this does the trick - thanks,

Geoff[color=blue]
>
>or possibly
>
>window.resizeTo(window.screen.width, window.screen.height);
>
>If anything, check out the window and screen objects[/color]

Zoe Brown
Guest
 
Posts: n/a
#6: Nov 2 '05

re: force maximised window?



"Geoff Cox" <geoff.cox@notquitecorrectfreeuk.com> wrote in message
news:546im1l0thvs58g2flj8q2374p0ciuqmgf@4ax.com...[color=blue]
> On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon
> <smjg_1998@yahoo.com> wrote:
>[color=green]
>>Geoff Cox wrote:[color=darkred]
>>> Hello,
>>>
>>> Can I use JavaScript to force a maximised window ?[/color]
>>
>>No.
>>
>>http://webtips.dan.info/force.html
>>[/color]
>
> 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...[/color]

move the image when the window is resized.


Zoe Brown
Guest
 
Posts: n/a
#7: Nov 2 '05

re: force maximised window?


[color=blue][color=green]
>>
>> Can I use JavaScript to force a maximised window ?[/color]
>
> No.
>
> http://webtips.dan.info/force.html[/color]

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


Geoff Cox
Guest
 
Posts: n/a
#8: Nov 2 '05

re: force maximised window?


On Wed, 02 Nov 2005 22:11:44 GMT, "Zoe Brown"
<zoenaomibrown@N-O-S-P-A-A-Mtesco.net> wrote:
[color=blue][color=green]
>> 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...[/color]
>
>move the image when the window is resized.[/color]

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



David Dorward
Guest
 
Posts: n/a
#9: Nov 2 '05

re: force maximised window?


bobzimuta wrote:
[color=blue]
> window.resizeTo(window.screen.availWidth, window.screen.availHeight);[/color]

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
Lee
Guest
 
Posts: n/a
#10: Nov 2 '05

re: force maximised window?


Zoe Brown said:[color=blue]
>
>[color=green][color=darkred]
>>>
>>> Can I use JavaScript to force a maximised window ?[/color]
>>
>> No.
>>
>> http://webtips.dan.info/force.html[/color]
>
>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 !![/color]

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.

RobG
Guest
 
Posts: n/a
#11: Nov 3 '05

re: force maximised window?


Geoff Cox wrote:[color=blue]
> On Wed, 02 Nov 2005 22:11:44 GMT, "Zoe Brown"
> <zoenaomibrown@N-O-S-P-A-A-Mtesco.net> wrote:
>[color=green][color=darkred]
>>> 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...[/color]
>> move the image when the window is resized.[/color]
>
> 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?[/color]

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
Robert
Guest
 
Posts: n/a
#12: Nov 3 '05

re: force maximised window?


Zoe Brown wrote:[color=blue][color=green][color=darkred]
>>>Can I use JavaScript to force a maximised window ?[/color]
>>
>>No.
>>
>>http://webtips.dan.info/force.html[/color]
>
>
> 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.[/color]

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.
[color=blue]
> I think the whole article
> is a little out of date !![/color]

Actually those articles are too late and should have been written from
day one.
Geoff Cox
Guest
 
Posts: n/a
#13: Nov 3 '05

re: force maximised window?


On Thu, 03 Nov 2005 03:55:57 GMT, RobG <rgqld@iinet.net.au> wrote:

[color=blue][color=green]
>> How do I detect a change in size and then force a refresh?[/color]
>
>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>[/color]

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

Cheers

Geoff

Zoe Brown
Guest
 
Posts: n/a
#14: Nov 4 '05

re: force maximised window?



"Robert" <robert@noreply.x> wrote in message
news:4369d3bc$0$11077$e4fe514c@news.xs4all.nl...[color=blue]
> Zoe Brown wrote:[color=green][color=darkred]
>>>>Can I use JavaScript to force a maximised window ?
>>>
>>>No.
>>>
>>>http://webtips.dan.info/force.html[/color]
>>
>>
>> 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.[/color]
>
> 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.[/color]

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.



Zoe Brown
Guest
 
Posts: n/a
#15: Nov 4 '05

re: force maximised window?



"Lee" <REM0VElbspamtrap@cox.net> wrote in message
news:dkbga90ub4@drn.newsguy.com...[color=blue]
> Zoe Brown said:[color=green]
>>
>>[color=darkred]
>>>>
>>>> Can I use JavaScript to force a maximised window ?
>>>
>>> No.
>>>
>>> http://webtips.dan.info/force.html[/color]
>>
>>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 !![/color]
>
> 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.[/color]

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[color=blue]
>[/color]


Lee
Guest
 
Posts: n/a
#16: Nov 4 '05

re: force maximised window?


Zoe Brown said:
[color=blue][color=green]
>> Nobody should ever assume that they have absolute control over the
>> users browsing environment.[/color]
>
>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[/color]

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.

Zoe Brown
Guest
 
Posts: n/a
#17: Nov 4 '05

re: force maximised window?



"Lee" <REM0VElbspamtrap@cox.net> wrote in message
news:dkggin0luh@drn.newsguy.com...[color=blue]
> Zoe Brown said:
>[color=green][color=darkred]
>>> Nobody should ever assume that they have absolute control over the
>>> users browsing environment.[/color]
>>
>>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[/color]
>
> 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.[/color]

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.


Lee
Guest
 
Posts: n/a
#18: Nov 7 '05

re: force maximised window?


Zoe Brown said:[color=blue]
>
>
>"Lee" <REM0VElbspamtrap@cox.net> wrote in message
>news:dkggin0luh@drn.newsguy.com...[color=green]
>> Zoe Brown said:
>>[color=darkred]
>>>> 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[/color]
>>
>> 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.[/color]
>
>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.
>
>[/color]

Closed Thread


Similar JavaScript / Ajax / DHTML bytes