473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Firefox onresize bug

Greetings,

Does anyone know of a workaround for the onresize bug in Firefox?

<body onresize="histo ry.go(0)">

I've looked all around and can't seem to find a working workaround.

David
Jul 23 '05 #1
2 7125
Hi,

<body onResize="histo ry.go(-1);"> works fine in FF.
I presume "history.go(0); " works as well, the thing his "history.go (0)" just reloads the current page. May be that's why you won't see it move.

You could also do :
<script type="text/javascript">
function Yo () {
history.go(0) ;
// OR window.location .reload() ;
}
window.onresize = Yo ;
</script>

Hope this helps ...

Cédric

David a écrit :
Greetings,

Does anyone know of a workaround for the onresize bug in Firefox?

<body onresize="histo ry.go(0)">

I've looked all around and can't seem to find a working workaround.

David

Jul 23 '05 #2
Normally that would work but Firefox version 1 doesn't support onresize. I
think it has something to do with the tabs. I've heard about using css and
setting the body to display:none and then display:block and the elements
will realign but it doesn't work in all instances. Just hoping someone knew
of a workaround in js.

David

"Cédric Correa Luna" <ce****@correal unaKILLSPAM.com > wrote in message
news:42******** *************@n ews.wanadoo.fr. ..
Hi,

<body onResize="histo ry.go(-1);"> works fine in FF.
I presume "history.go(0); " works as well, the thing his "history.go (0)" just reloads the current page. May be that's why you won't see it move.
You could also do :
<script type="text/javascript">
function Yo () {
history.go(0) ;
// OR window.location .reload() ;
}
window.onresize = Yo ;
</script>

Hope this helps ...

Cédric

David a écrit :
Greetings,

Does anyone know of a workaround for the onresize bug in Firefox?

<body onresize="histo ry.go(0)">

I've looked all around and can't seem to find a working workaround.

David

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
3549
by: Simon Wigzell | last post by:
I have the following in my webpage: <body onresize=CenterIt(); onMouseMove=mouseCheck(event);> CenterIt and mouseCheck are my own javascript functions. Works fine for IE and Opera, doesn't even go into the function for Firefox or Netscape. Is there a different way to assign functions to events that will be understood by "all" browsers? Thanks!
6
24656
by: hannibal | last post by:
Hi, i need to refresh page cathcing "onResize" event. I wrote this code: <body onResize="javascript:winodw.location.reload(true); return true;"> On I.E. it works, but it doesn't work on Firefox. Someone knows why?
1
2727
by: Darrel Yurychuk | last post by:
I'm having a problem getting the window.onresize to work properly. Here is a simple test case I wrote: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test window.onresize</title> <script type="text/javascript"> function resize_func() {
2
2026
by: FrankIsHere | last post by:
This should attach the event to the onresize of the window object, but when I try to resize the browser after executing the page it does not work... only after I refresh the page. But then of course that's after the HTTP request. Here is the code: <HTML> <HEAD> <script language="javascript"> function Loadit() { var oHTTP = new ActiveXObject("Microsoft.XMLHTTP");
13
2867
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available here: http://s161149005.onlinehome.us/DEMOS/FF/RESIZE_PROB/main/frameset.asp It works fine in IE 6, but in Firefox, it is broken. Specifically, when the page/frameset first loads in either browser, it looks correct. But when you click the...
2
5207
by: yb | last post by:
I am attempting to modify the style of an element (its width) as the window is being resized, in firefox. Long story short, I've tried to use CSS but one particular part of the layout just won't do what I need. The javascript solution assigns a function to window.onresize that sets the inline style, it works with one problem -- the handler only gets called after the resizing stops, and so there is noticeable lag before it redraws.
3
2358
by: sivavenugopal | last post by:
Hi All, I am using a table in my page. I am changing the size (width and Height) of the table while resize of the browser. It is working fine with IE but not working with FF. Please provide me the solution. I am opening the page using javascript with the following settings. var WinSettings = 'titlebar=no, status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resize=yes,resizable=yes';...
1
3799
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture . place of the pictures is saved in the database(my database is with mysql) and in home page i fetch properties of the product and address of place that pictures is located output of the code in the...
0
8285
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8814
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8475
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8591
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5621
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1592
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.