473,587 Members | 2,412 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>Interact ive Map of Bay of Plenty Region</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<SCRIPT LANGUAGE="JavaS cript">
var winHeight=scree n.height;
var winWidth=screen .width;

winHeight = winHeight-25;

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

<BODY BGCOLOR="#FFFFF F">
blah blah blah
</BODY>
</HTML>

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

driving me crazy

any comments welcome

cheers
Jan 24 '06 #1
3 1664
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.wi dth);//alerts 2560
alert(screen.he ight);//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.javas cript 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.wi dth);//alerts 2560
alert(screen.he ight);//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.javas cript 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
2640
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 HP , to fit the actual Browser size. So I found this: > > <HTML><HEAD></HEAD>
2
12784
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 the window or frame). I'm trying to use Javascript to do so. I can sort of get an example working in a Mozilla browser: > <!-- This works on...
5
2271
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 to either a) generate numbers b) Prompts a user to locate a web page c) go to previous page in history list d) Loads next page in history list e)...
8
1907
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 does not seem to work. Tested under IE6 and firefox. I wish the browser to resize and centre on screen when the user goes to my site.
9
2870
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 no luck though), and searched through the IRT.ORG Faqs (www.irt.org/script/script.htm). The Javascript is designed to open an popup window and...
1
18845
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" runat="server"> <div> &nbsp;</div> <div>
1
3913
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 test1.jsp. The iFrame src points to a page called test2.jsp. It has a resize attribute that calls a javascript function that is located in test1.jsp....
7
5803
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 is the the IE7 window is never a consistant size because I resize it as I am using it. I would like to be able to open up a blank IE 7 window and...
7
2587
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 there any javascript function available to perform this requirement ?
0
7918
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5713
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.