What Am I doing wrong here?

P

Paul

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?.
 
L

Lasse Reichstein Nielsen

Paul said:
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
 
A

ASM

Paul said:
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
 
R

Ronx

FireFox blocks scripts that resize the browser. See my post in your
other thread.
Starting several threads on the same subject is counter productive.
 
P

Paul

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

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top