473,378 Members | 1,209 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

What Am I doing wrong here?

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
4 1595
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
17
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in...
5
by: plugimi | last post by:
hi i've got kind of a strange problem i'm struggeling with here. this page: http://www.pohflepp.de/eavesdripping4.html won't be recognized as html/xml by firefox. i've tried everything that...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
46
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
2
by: Aaron Ackerman | last post by:
I cannot a row to this bound DataGrid to SAVE MY LIFE! I have tried everything and I am at a loss. The using goes into add mode with the add button adds his data then updates with the update...
98
by: tjb | last post by:
I often see code like this: /// <summary> /// Removes a node. /// </summary> /// <param name="node">The node to remove.</param> public void RemoveNode(Node node) { <...> }
8
by: watkinsdev | last post by:
Hi, I have created a mesh class in visual studio 6.0 c++. I can create a device, render objects and can edit the objects by for instancnce selecting a cluster of vertices and processing the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.