473,563 Members | 2,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="JavaS cript">
function firefoxautofix( ){
parent.window.r esizeBy(-1,-1)
parent.window.r esizeBy(+1,+1)
}
</script>

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

<body onload="firefox autofix();">

am I missing something here?.

--
Thanks in advance :)

Paul
Sep 21 '05 #1
4 1610
"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="JavaS cript">
Should be
<script type="text/javascript">
In valid HTML, the type attribute is required, and it is always
sufficient.
function firefoxautofix( ){
parent.window.r esizeBy(-1,-1)
Are you sure the parent window is the correct window?
"parent.win dow" is the same as just "parent".

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

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

<body onload="firefox autofix();">

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/rasterTriangleD OM.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="JavaS cript">
function firefoxautofix( ){
parent.window.r esizeBy(-1,-1)
parent.window.r esizeBy(+1,+1)
}
</script>

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

<body onload="firefox autofix();">

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******** ************@ne ws20.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="JavaS cript">
function firefoxautofix( ){
parent.window.r esizeBy(-1,-1)
parent.window.r esizeBy(+1,+1)
}
</script>

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

<body onload="firefox autofix();">

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******** ************@ne ws20.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="JavaS cript">
function firefoxautofix( ){
parent.window.r esizeBy(-1,-1)
parent.window.r esizeBy(+1,+1)
}
</script>

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

<body onload="firefox autofix();">

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
14594
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 software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
17
2621
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 directly. so I need a way doing this. so I check to see if the ifp value is null and if so then assign it a value. is this correct?
5
1753
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 i could think of but still it doesn't work. looks great in safari, though.
121
9969
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 support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather...
46
4178
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 believe MSFT should do to improve C#, however. I know that in the "Whidbey" release of VS.NET currently
13
5023
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
2699
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 button, seems simple. I am using ALL visual controls (supposedly to simplify things. If I was not using the visual controls and calling an ExecuteNonQuery...
98
4524
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
2058
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 vertices and can do this multiple times on a sinlge vertex cluster. The problem I have been encoutering is that, if I select a second vertex...
0
7583
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
7888
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
6255
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
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
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
924
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.