473,785 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

focus() on scrolling div in Firefox

I am sure I am not typing the correct question in Google or this group
to find the answer to my question. So, I have to ask.

I have a scrolling div that I am changing text color and background
color on a mouse over of a marker on a map. I also want the div with
the proper ID to come to the viewable area of the scrolling div when I
mouse over the marker on the map.

I have that working in IE but not Firefox.

Here is the link to the example.
http://mls.andersonasp.com/index2.cfm

BTW, I am a self taught scripter so I am sure I do not have a very
standard way of doing things. I am an old dog trying to learn new
things.
>8-)
Thanks in advance,

Hank

Jul 31 '06 #1
3 3453

AngryHank wrote:
I am sure I am not typing the correct question in Google or this group
to find the answer to my question. So, I have to ask.

I have a scrolling div that I am changing text color and background
color on a mouse over of a marker on a map. I also want the div with
the proper ID to come to the viewable area of the scrolling div when I
mouse over the marker on the map.

I have that working in IE but not Firefox.

Here is the link to the example.
http://mls.andersonasp.com/index2.cfm
I am not going to wade through 7 script files to find the code
responsible, but I can suggest that you use feature detection and
Gecko's non-standard scrollIntoView:

<URL: http://developer.mozilla.org/en/docs...scrollIntoView >

--
Rob

Jul 31 '06 #2
Yeah.. Sorry about that.

http://mls.andersonasp.com/Scripts/displayListings.js

Thanks for the link. Looking at that now.

Hank

RobG wrote:
AngryHank wrote:
I am sure I am not typing the correct question in Google or this group
to find the answer to my question. So, I have to ask.

I have a scrolling div that I am changing text color and background
color on a mouse over of a marker on a map. I also want the div with
the proper ID to come to the viewable area of the scrolling div when I
mouse over the marker on the map.

I have that working in IE but not Firefox.

Here is the link to the example.
http://mls.andersonasp.com/index2.cfm

I am not going to wade through 7 script files to find the code
responsible, but I can suggest that you use feature detection and
Gecko's non-standard scrollIntoView:

<URL: http://developer.mozilla.org/en/docs...scrollIntoView >

--
Rob
Jul 31 '06 #3
K. You are awesome.

Thanks Mr. G.
Not as AngryHank


RobG wrote:
AngryHank wrote:
I am sure I am not typing the correct question in Google or this group
to find the answer to my question. So, I have to ask.

I have a scrolling div that I am changing text color and background
color on a mouse over of a marker on a map. I also want the div with
the proper ID to come to the viewable area of the scrolling div when I
mouse over the marker on the map.

I have that working in IE but not Firefox.

Here is the link to the example.
http://mls.andersonasp.com/index2.cfm

I am not going to wade through 7 script files to find the code
responsible, but I can suggest that you use feature detection and
Gecko's non-standard scrollIntoView:

<URL: http://developer.mozilla.org/en/docs...scrollIntoView >

--
Rob
Jul 31 '06 #4

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

Similar topics

7
10559
by: Chris | last post by:
I'm using eight links listed horizontally as a menu on my site. I'm using font-variant:small-caps and they are padded so that they mimic buttons. My gripe is with the way IE handles the focus rectangle on these links. It insists on drawing this crazy shape that traces the text, which with small caps looks rather assinine. Firefox handles the same task very gracefully (yeah Gecko!) and I would like to force IE to do the same. The site...
5
16028
by: Steve Belanger | last post by:
Has anybody heard or figured out a way to make a DIV with overflow: scroll to look the same in IE and Firefox in IE i have one table splitted in two, the bottom part is the scrolling (Set to a height of 100%), it displays properly.. But firefox hardly produce the scrollbars on that division, and instead makes the whole page to scroll. I know there is some incompatibility between the two browsers as far as following the CSS standards,...
20
12308
by: Arne | last post by:
During testing <div style="overflow:auto;"> in CSS I noticed the mousewheel would work in Mozilla only after I made a <a href="#">some text</a> link and clicked on that, within the div. It appears as if Mozilla needs to have the focus set on that div in order for the mousewheel to work. That's all that link does. The mousewheel works perfectly in IE without the link. It scrolls the div even if there is a scrollbar on the page. Is...
5
4367
by: Bryan Masephol | last post by:
Hi All I got a datagrid and a ComboBox on a form. I populate the combobox with years for all the data avaiable. When the user chooses a year the datagrid is populated with the specific years information. Problem... when the users scrolls the datagrid with the mouse wheel it work for 2 wheel clicks and then for some reason the focus jumps to the combobox and the year is then changes there for causing the data to change and errors...
0
1136
by: Jean-Francois Lord | last post by:
Hello, I have a multithreaded windows app that has a RichTextBox acting as an output console for the worker threads. I need a way of scrolling down to the bottom of the RichTextBox as text is added without stealing the focus from my other controls. RichTextBox.Focus() RichTextBox.ScrollToCarret()
5
3510
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything works fine as it also does in firefox if I call the contents frame directly (i.e. outside of its frameset). However, if I call my main page (index.html) which invokes the frame set, the contents frame javascript menubar onmouseover function...
8
4072
by: makunag | last post by:
Didn't get answer with google and in my regular forum. Came across this site and posting here. Your help will be highly appreciated ! Our application have frames - MainNav, TaskNave and Content. When print button is clicked, it prints only the Content (obviously top.Content.focus() is in the code before window.print()). We were using windows 2000 & IE6 for years. Recently, our installation updated users machines with XP SP2. Now when print...
8
19460
by: Amir Michail | last post by:
Hi, Under Firefox, you can't scroll using the keyboard on this links page unless you click on the div first: http://numbrosia.com/?cmd=links Is there a way to automatically set focus to a div? Amir
1
2641
by: jonceramic | last post by:
Hi All, I've noticed that in a lot of my forms and tables, when I'm on continuous view, I can't scroll when the focus is in a field or on a control. Meaning, if I have a list, and start scrolling, it always jumps back to the focus the second the scrolling is done. While I like this in some cases, it can get to be annoying. I try to
0
9485
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
10356
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...
0
10161
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
10098
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
9958
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
6743
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
4058
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
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
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.