473,401 Members | 2,068 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,401 software developers and data experts.

safari and scrollIntoView

anyone else had troubles getting scrollIntoView to work in Safari
v1.2.4? the sample code below works fine in all other browsers.

ben

<HTML>
<HEAD>
</HEAD>
<BODY>
<SPAN id='1'>1</SPAN><BR><BR><BR><BR><BR><BR>
<SPAN id='2'>2</SPAN><BR><BR><BR><BR><BR><BR>
<SPAN id='3'>3</SPAN><BR><BR><BR><BR><BR><BR>
<SPAN id='4'>4</SPAN><BR><BR><BR><BR><BR><BR>
<SCRIPT>
document.getElementById('4').scrollIntoView(true);
</SCRIPT>
</BODY>
</HTML>

Jul 23 '05 #1
1 2498
bjarthur wrote:
anyone else had troubles getting scrollIntoView to work in Safari
v1.2.4? the sample code below works fine in all other browsers.


Have you tried:

alert(document.getElementById('4').scrollIntoView) ;

If it returns 'undefined', then it is unsupported and no amount
of cajoling will get it to 'work'.

--
Zif
Jul 23 '05 #2

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

Similar topics

1
by: F. Da Costa | last post by:
Hi, Situation: Large treeTable (based mainly on static html) can be dynamically populated from the server based on requested node or result from search. As one can imagine a value can be...
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...
1
by: Steve Murphy | last post by:
Do .scrollIntoView, .focus, and .select work in Safari, or am I just doing something wrong. The following code works in Firefox, Netscape, and IE on both Mac and Windows, but fails on Safari: ...
0
by: Larry Brown | last post by:
Hi, I'm working on an ASP.NET 2 application, with framework 2.0 beta. I have a classic form, with a listbox. This field is in autopostback=true. When I change the selected value, the page is...
1
by: Jim Satterfield | last post by:
I've looked and looked and can't find any solution or even mention of this problem so I'll see if I can find anyone through this group who might have an idea. I've inherited the job of webmaster...
4
by: xevi.matavacas | last post by:
Hi friends, I found a problem while "scrolling into view" and to overcome this I made a function to simulate javascript's function. I would like to share it and here it is: function...
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...
3
by: sylver | last post by:
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...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.