473,804 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript, DHTML. Scrolling bug in Firefox.

Hi, All!

When I trying to do:
this.ctrl.style .display = 'block';

Firefox scroll area to the top, but IE not. I think that's bug. Maybe
anyone knows how I can fix that?

Thanks for advise.
All the best, Gleb M. Borisov.

Jul 21 '07 #1
4 1775
bo**********@gm ail.com wrote on 21 jul 2007 in comp.lang.javas cript:
When I trying to do:
this.ctrl.style .display = 'block';

Firefox scroll area to the top, but IE not. I think that's bug. Maybe
anyone knows how I can fix that?
What area?
What is this referring to?
what is ctrl referring to?
What do you see as a bug, what IE does, or what FF does?
What are they doing in fact?

Could you please show us a minimalized example, preferably as an URL?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 21 '07 #2
On Jul 21, 3:24 pm, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:

That is common Firefox feature. Then HTML-content changed it scroll up
to the top focused item. (I think for anti-fishing and so-so-so).
Solution is remember scrollTop of element and set it to old value
after changing content.

var oldTop = ctrl.scrollTop;
this.ctrl.style .display = 'block';
ctrl.scrollTop = oldTop;

It works pretty but blinking sometimes.

I would submit this issue to Mozilla bug tracker and if any comments -
post it in this topic.

Anyway thanks for attention.
All the best, Gleb M. Borisov.

Jul 21 '07 #3
bo**********@gm ail.com wrote on 21 jul 2007 in comp.lang.javas cript:
On Jul 21, 3:24 pm, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:

That is common Firefox feature. Then HTML-content changed it scroll up
to the top focused item. (I think for anti-fishing and so-so-so).
I too, do not like fishing, Gleb.
Solution is remember scrollTop of element and set it to old value
after changing content.
I did not write any of this.
Thank you for quoting, but PLEASE, do quote correctly!
var oldTop = ctrl.scrollTop;
What is ctrl?
this.ctrl.style .display = 'block';
ctrl.scrollTop = oldTop;

It works pretty but blinking sometimes.

I would submit this issue to Mozilla bug tracker and if any comments -
post it in this topic.

Anyway thanks for attention.
All the best, Gleb M. Borisov.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 21 '07 #4
On Jul 21, 5:36 pm, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:
I too, do not like fishing, Gleb.
I think it's not super-solution coz fisher can use trick with
scrollTop.
What is ctrl?
ctrl - div contains datagrid content.
this - contextmenu "control" object. (some methods and some fields
like ctrl, that contains link to html element).

Sorry for broken qouting. This shouldn't happens again :)

All the best, Gleb M. Borisov.

Jul 21 '07 #5

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

Similar topics

8
5418
by: Anders Floderus | last post by:
When I try to run javascript, I get the message "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..." If I chose to show blocked contents, it works all right. Why ? I have javascript enabled and never get this message while browsing the web. I have removed everything except the most basic functionality (see below) but it still
14
12661
by: Karin Jensen | last post by:
Hi - I am trying to use Javascript to put material inside a table (i.e. alongside the previous material) if the user's screensize is big enough and outide the table (beneath table) if it isn't. The following code (tag properties and other extraneous material removed) works in IE but not Firefox: <table> <tr><td> first set of material </td>
15
4236
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is avaliable at... http://www.geocities.com/binnyva/code/javascript/advanced_tutorial/ If any of you could spare the time, please have a look at my tutorial
4
2334
by: lmarceglia | last post by:
Hi, I have this website that doesn't work in Firefox 1.5: www.pianetaluca.com The HTML source is: <TITLE>PianetaLuca</TITLE> </HEAD>
4
1196
by: darwinist | last post by:
1 Works in a browser as customisable web-interface or, 2 Use with apache to make window-based, dhtml-apps 3 Rename/retitle open windows 4 Arbitrary virtual desktop size with easy navigation (default 10000x10000) 5 Free as in freedom, and free as in free-beer (beer not included). 6 All in one html/js file at http://darwinist.googlepages.com/webwindows.html 7 "Save Page As" to start your own 8 Tested on firefox 1.5 and ie 6
4
17783
by: cmo | last post by:
What I'm trying to do is to display a loading screen while an ajax request executes. I have a page that is fairly long with several tables worth of data and the sorting/pagination of each table is handled by ajax requests. I'd like to have a css div that is displayed in the center of the browser window when a user selects an operation that kicks off an ajax request. What I have thus far is a div that shows up in the center of the...
2
3158
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button then the calender gone actually i want if i click outside off the calender then it should me removed ..How kan i do this ... Pls inform me as early as possible .. I am waiting for ur quick replay ...Here i attached the source code .... <!DOCTYPE...
3
2654
by: Archana | last post by:
hi all, can any one tell me how will i set scrollbar to iframe throguh javascript. please help me asap. thanks in advance
1
2247
by: razamemon | last post by:
i am struggling from last 3 days creating frames using javascript, it works fine on IE but not on firefox, when displaying language other than english, here is the code self.newWin = window.open('about:blank','cal','dependent=yes,width=180,height=180,titlebar=yes,top=243,left=232'); newWin.document.write ( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0...
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
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
10346
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
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
10090
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...
1
7635
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
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();...
1
4308
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
3
3001
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.