473,394 Members | 1,769 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,394 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 2815
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...

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.