473,513 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javascript resize in IE/XP wonky

I have a html window that is opened from another link with the toolbars
etc off.
i have javascript code to detect the users screen size, which then the
newly opened window uses to resize to full screen.

this code doesnt seem to work correctly with IE and XP. it works
correctly under netscape, mozilla in XP, and under WIN2k, it works with
IE, netscape mozilla. it does it on other peoples pcs, so i know its
just not me

If i press F5 to refresh the browser, it will then correct itself and
size to full screen.

is it a bug or just blame the moon?

code below
***********************
<HTML>
<HEAD>
<TITLE>Interactive Map of Bay of Plenty Region</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
var winHeight=screen.height;
var winWidth=screen.width;

winHeight = winHeight-25;

window.resizeTo(winWidth,winHeight);
window.moveTo(0,0);
</SCRIPT>

<BODY BGCOLOR="#FFFFFF">
blah blah blah
</BODY>
</HTML>

**********************

driving me crazy

any comments welcome

cheers
Jan 24 '06 #1
3 1656
mindseeker said the following on 1/23/2006 11:33 PM:
I have a html window that is opened from another link with the toolbars
etc off.
I'm sorry. Whoever taught you that anti-social behavior failed you.
i have javascript code to detect the users screen size, which then the
newly opened window uses to resize to full screen.
I bet it doesn't do what you think it does.
this code doesnt seem to work correctly with IE and XP. it works
correctly under netscape, mozilla in XP, and under WIN2k, it works with
IE, netscape mozilla. it does it on other peoples pcs, so i know its
just not me
"works correctly" isn't a correct analogy. Move your taskbar to the
right side of the monitor by dragging it there and then tell me that it
"works correctly".

And then tell me what size the window should be for me:

alert(screen.width);//alerts 2560
alert(screen.height);//alerts 960

Hint: I have dual monitors.
If i press F5 to refresh the browser, it will then correct itself and
size to full screen.

is it a bug or just blame the moon?


It is a bug in your belief that you know better than the user what size
to make the browser window.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 24 '06 #2
I was looking for an answer to my question, not some gibberish

Seems your not as smart as you think, because you dont have an answer to
my question.

Thank you
Randy Webb wrote:
mindseeker said the following on 1/23/2006 11:33 PM:
I have a html window that is opened from another link with the
toolbars etc off.

I'm sorry. Whoever taught you that anti-social behavior failed you.
i have javascript code to detect the users screen size, which then the
newly opened window uses to resize to full screen.

I bet it doesn't do what you think it does.
this code doesnt seem to work correctly with IE and XP. it works
correctly under netscape, mozilla in XP, and under WIN2k, it works
with IE, netscape mozilla. it does it on other peoples pcs, so i know
its just not me

"works correctly" isn't a correct analogy. Move your taskbar to the
right side of the monitor by dragging it there and then tell me that it
"works correctly".

And then tell me what size the window should be for me:

alert(screen.width);//alerts 2560
alert(screen.height);//alerts 960

Hint: I have dual monitors.
If i press F5 to refresh the browser, it will then correct itself and
size to full screen.

is it a bug or just blame the moon?

It is a bug in your belief that you know better than the user what size
to make the browser window.

Jan 27 '06 #3
mindseeker said the following on 1/26/2006 11:27 PM:
I was looking for an answer to my question
And you got answers. Just because it wasn't what you wanted doesn't
change what you got.
, not some gibberish
There was not gibberish in your post.
Seems your not as smart as you think,
Actually, they say I am smarter than I think I am. That I tend to try to
diminish my thought processes and be humble about it.
because you dont have an answer to my question.


Yes I do. And I gave it. This is a discussion group, not a help desk. If
you ask a question, it gets discussed. If you get an answer you like,
fine. If you don't, that's still fine. But your question *was* answered.
It just wasn't what you wanted to hear.

Now, how you any answers for *my* questions in my reply to you? The
answer to my questions predicate and answer to yours.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 27 '06 #4

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

Similar topics

0
2635
by: Henk Verhoeven | last post by:
(Reply on this newsgroup to an email - reply by email did not work) Wolfman wrote: > > Hi, > I found your Email in the php Newsgroup. > I was looking for some way to resize some graphiks on my...
2
12772
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
5
2264
by: TrvlOrm | last post by:
Can any one please help me...I am new to JavaScript and I have been struggling with this code for days now and can't figure it out. I would like to get the Buttons to correspond with the action...
8
1899
by: Andrew Crook | last post by:
I placed the following code in my html file window.resizeTo(1000,700) window.moveTo((screen.availWidth/2)-(1000/2),(availHeight/2)-(700/2)); The resize seems to work fine, however, the move...
9
2858
by: Robby Bankston | last post by:
I'm working on some code and am running into brick walls. I'm trying to write out Javascript with Javascript and I've read the clj Meta FAQ and didn't see the answer, read many similar posts (with...
1
18835
by: den2005 | last post by:
Hi everybody, I am confused and still looking why this codes is not working. Can anyone notice or know why this code is not working? Thanks in advance. Code working: <form id="form1"...
1
3908
by: jadeite100 | last post by:
Hi: I am using IE 6 SP2. My resize attribute does not work <body onresize="test1();">. When I resize my window, the resize event doesnot get call. I have a jsp page with an iFrame called...
7
5795
by: Bill H | last post by:
When I do website design I have my screen (on a PC) set for 1600 x 1200 or greater resolution so that I can have as many windows open as I need and not have to flip between them. The issue I have...
7
2581
by: Anz | last post by:
Can any one know the javascript function to auto resize the swf when resizing its pop up window. I need to auto resize the swf when i resize my popup window in which the swf is displayed. Is...
0
7157
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
7379
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,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.