473,246 Members | 1,567 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,246 software developers and data experts.

replacement for IE's scrollIntoView() method in Mozilla

Hi to all,

I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?

ref:
http://msdn2.microsoft.com/en-us/library/ms536730.aspx
http://groups.google.com/group/comp....063f68af40ee7b

Thanks.

Jul 25 '07 #1
3 2808
kai
On Jul 25, 12:39 am, sylver <gamergemp...@gmail.comwrote:
Hi to all,

I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?

ref:http://msdn2.microsoft.com/en-us/lib...wse_thread/thr...

Thanks.
scrollIntoView works in Mozilla and Safari. I believe its part of DOM
level 2, http://developer.mozilla.org/en/docs...scrollIntoView

Jul 25 '07 #2
On Jul 25, 1:39 am, sylver <gamergemp...@gmail.comwrote:
Hi to all,

I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?
you can use it in Mozilla (and opera..) but you have to specify the
parameter:
e.scrollIntoView(1)
Jul 26 '07 #3
On Jul 26, 1:40 am, "scripts.contact" <scripts.cont...@gmail.com>
wrote:
On Jul 25, 1:39 am, sylver <gamergemp...@gmail.comwrote:
Hi to all,
I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?

you can use it in Mozilla (and opera..) but you have to specify the
parameter:
e.scrollIntoView(1)
The parameter is optional. If true, it aligns the element to the top
of the container. The default is to align with the bottom.

Jul 26 '07 #4

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

Similar topics

7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
16
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my...
3
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and...
3
by: cmay | last post by:
I am trying to use scrollIntoView to programatically scroll an area on one of my pages. It wors just like you would expect it to when the page itself doesn't have any scrolling (the page is...
5
by: anand basha | last post by:
what is the replacement for window.navigate in mozilla & i was used window.showmodelessdialog in IE5 - in mozilla it is not working *** Sent via Developersdex http://www.developersdex.com...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
1
by: sarath chandran | last post by:
what is this function trying to do? onload method calls these two functions function getHost(){ document.form1.Host.value = document.location.host; } function getClientTimeZone(){ var dt =...
4
by: sarath chandran | last post by:
Hi all, can you tell me the replacement for window.showModalDialog in Mozilla. the code given below works well in IE but it doesn't work in Mozilla. Is there any replacement for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.