By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

What Am I doing wrong here?

P: n/a
HI! I have a script that does not seem to work. can someone tell me what I
am doing wrong here?

<script language="JavaScript">
function firefoxautofix(){
parent.window.resizeBy(-1,-1)
parent.window.resizeBy(+1,+1)
}
</script>

I put this script in the body and I call it in the body code as such

<body onload="firefoxautofix();">

am I missing something here?.

--
Thanks in advance :)

Paul
Sep 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Paul" <pa***********@sympatico.ca> writes:
HI! I have a script that does not seem to work. can someone tell me what I
am doing wrong here?

<script language="JavaScript">
Should be
<script type="text/javascript">
In valid HTML, the type attribute is required, and it is always
sufficient.
function firefoxautofix(){
parent.window.resizeBy(-1,-1)
Are you sure the parent window is the correct window?
"parent.window" is the same as just "parent".

Try using "top.resizeBy(...);" (I recommend ending statements
with a semicolon, for readablity).
parent.window.resizeBy(+1,+1)
}
</script>

I put this script in the body and I call it in the body code as such

<body onload="firefoxautofix();">

am I missing something here?.


Telling us what the problem is? :)

So, we have seen your script and how you call it. We still need to
know what it is supposed to do, and what it really does.

Why do you want to fiddle with the window size? Do you need to trigger
a re-rendering of the page? If so, why? Can we get a link to the page
that needs it, so we can see for ourselves?

Regards
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Sep 21 '05 #2

P: n/a
ASM
Paul wrote:
HI! I have a script that does not seem to work. can someone tell me what I
am doing wrong here?
why do you post in so much groups ?

why don't you wait answer to your same other question ?

an iFrame have not to be resised ...
<script language="JavaScript">
function firefoxautofix(){
parent.window.resizeBy(-1,-1)
parent.window.resizeBy(+1,+1)
}
</script>

I put this script in the body and I call it in the body code as such

<body onload="firefoxautofix();">

am I missing something here?.


your false resizing window would be called in end
of your function you did to resize the iFrame
--
Stephane Moriaux et son [moins] vieux Mac
Sep 21 '05 #3

P: n/a
FireFox blocks scripts that resize the browser. See my post in your
other thread.
Starting several threads on the same subject is counter productive.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

"Paul" <pa***********@sympatico.ca> wrote in message
news:6B********************@news20.bellglobal.com. ..
HI! I have a script that does not seem to work. can someone tell me
what I am doing wrong here?

<script language="JavaScript">
function firefoxautofix(){
parent.window.resizeBy(-1,-1)
parent.window.resizeBy(+1,+1)
}
</script>

I put this script in the body and I call it in the body code as
such

<body onload="firefoxautofix();">

am I missing something here?.

--
Thanks in advance :)

Paul

Sep 21 '05 #4

P: n/a
HI! Thanks, sorry for taking to so long to thank you guys but I had to go
away on an emergency.

Paul

"Paul" <pa***********@sympatico.ca> wrote in message
news:6B********************@news20.bellglobal.com. ..
HI! I have a script that does not seem to work. can someone tell me what I
am doing wrong here?

<script language="JavaScript">
function firefoxautofix(){
parent.window.resizeBy(-1,-1)
parent.window.resizeBy(+1,+1)
}
</script>

I put this script in the body and I call it in the body code as such

<body onload="firefoxautofix();">

am I missing something here?.

--
Thanks in advance :)

Paul

Nov 9 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.