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

In page anchor problem

I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to. I then started removing the anchor links
to troubleshoot erroneous code. The more anchors I removed from the
bottom the move the problem moved upwards. Any help with this problem
would be appreciated.

Here is the page link so you can see what I am talking about:

http://admissions.usafa.af.mil/RR/CONFAQ.htm
Jul 20 '05 #1
6 9465
PhillyFan wrote:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to.
http://admissions.usafa.af.mil/RR/CONFAQ.htm

Not sure what you mean, it all works fine for me. Well, the page ends
after the last answer, so the browser has nothing to scroll further down
to. That's why the anchor's target won't display at the top of the
viewport as it usually would. A workaround would be to artificially make
the page longer, but I'm not sure that is very attractive.

It would be helpful to have the question repeated, e.g. as a heading
above the answer.
Matthias

Jul 20 '05 #2
Els
PhillyFan wrote:
I have a page setup using anchors. For some reason not all
the anchors are working correctly. The last three anchors
do not start where they are supposed to. I then started
removing the anchor links to troubleshoot erroneous code.
The more anchors I removed from the bottom the move the
problem moved upwards. Any help with this problem would be
appreciated.

Here is the page link so you can see what I am talking
about:

http://admissions.usafa.af.mil/RR/CONFAQ.htm


You mean that if you click on "do you have a website", the
answer doesn't show exactly at the top of the window?

To make that happen, you would need to apply a large white space
at the bottom of your page, to let it scroll. The page simply
can't scroll up any more when the bottom of the document is
reached...

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #3
Quoth the raven Matthias Gutfeldt:
PhillyFan wrote:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not
start where they are supposed to.

http://admissions.usafa.af.mil/RR/CONFAQ.htm


Not sure what you mean, it all works fine for me. Well, the page
ends after the last answer, so the browser has nothing to scroll
further down to. That's why the anchor's target won't display at
the top of the viewport as it usually would. A workaround would be
to artificially make the page longer, but I'm not sure that is very
attractive.

It would be helpful to have the question repeated, e.g. as a
heading above the answer.


Most definitely, the "questions" need to be repeated at the top of
their sections, most likely with <h2> markup. Many visitors will
simply scroll the whole page, and won't know when they have gotten to
a new answer. [I did not find an <h1> on the page, but there should be
one.]

The list of questions (table of contents) should be marked up as a
list: <ul><li>...

--
-bts
-This space intentionally left blank.
Jul 20 '05 #4
"PhillyFan" <ph*********@hotmail.com> wrote in
comp.infosystems.www.authoring.html:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to. I then started removing the anchor links
to troubleshoot erroneous code. The more anchors I removed from the
bottom the move the problem moved upwards. Any help with this problem
would be appreciated.

http://admissions.usafa.af.mil/RR/CONFAQ.htm
I see the page, and a couple of clicks on the questions seemed to
take me to the right answers. The very last question, when I clicked
on it, took me to a point in the middle of a preceding paragraph.
That's not unusual with browsers when an anchor is near the end of a
page: sometimes the prefer to show a full or nearly full page of
text.

P.S. There are five HTML errors, which you probably want to fix on
general principles, though I don't think they relate to the problem
you're reporting.
http://validator.w3.org/check?charse....htm&outline=x


One of the four is a size=+2, which should be size="+2" as far as
the syntax is concerned, but is probably not the right way to do
things on other grounds.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #5
"Matthias Gutfeldt" <sa************@gmx.net> wrote in
comp.infosystems.www.authoring.html:
PhillyFan wrote:
http://admissions.usafa.af.mil/RR/CONFAQ.htm


It would be helpful to have the question repeated, e.g. as a heading
above the answer.


Hear, hear! That would also solve the (apparent) problem of the
browser not jumping so the last answer is at the top.

I think it's http://useit.com that suggests when the user clicks on
a link, the target ought to have that title, or at least be
instantly recognizable as the same.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #6
Stan Brown <th************@fastmail.fm> wrote in message news:<MP************************@news.odyssey.net> ...
"PhillyFan" <ph*********@hotmail.com> wrote in
comp.infosystems.www.authoring.html:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to. I then started removing the anchor links
to troubleshoot erroneous code. The more anchors I removed from the
bottom the move the problem moved upwards. Any help with this problem
would be appreciated.

http://admissions.usafa.af.mil/RR/CONFAQ.htm


I see the page, and a couple of clicks on the questions seemed to
take me to the right answers. The very last question, when I clicked
on it, took me to a point in the middle of a preceding paragraph.
That's not unusual with browsers when an anchor is near the end of a
page: sometimes the prefer to show a full or nearly full page of
text.

P.S. There are five HTML errors, which you probably want to fix on
general principles, though I don't think they relate to the problem
you're reporting.
http://validator.w3.org/check?charse....htm&outline=x


One of the four is a size=+2, which should be size="+2" as far as
the syntax is concerned, but is probably not the right way to do
things on other grounds.

Thanks for all your help and suggestions I will add more whitespace to
the bottom of the section. As far as the errors they are not show
stoppers and can be fixed easily.
Jul 20 '05 #7

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

Similar topics

6
by: uitbundig | last post by:
I am writing a function as listed below. My problem is that this form passes only the variable 'state' and not the others. Can somebody help me? Thanks, Gustaaf function...
6
by: Dominic | last post by:
I have a home page on an intranet called default.asp I just type in the server name to take me to the default page http://server. The home page has an anchor name tag: <A name="fred">Freds Info</A>...
8
by: lancevictor | last post by:
I'm learning javascript, and toward that end, I am recreating a page "my way". The original page: http://stenbergcollege.com and the one that I'm creating:...
1
by: umamy | last post by:
Hi, I am writing code to do the followin: - user clicks a link - the page reloads and sets a cookie with a js function in the header. The function reloads the same page with the cookie set and...
9
by: monomaniac21 | last post by:
hi all i want to use hyperlinks to 'load' content by changing the display of div tags. the problem i have is that unless i specify a href the anchor does not change the mouse pointer on hover...
1
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site...
5
by: Kalpana Durairaj | last post by:
I want to insert my image within search result anchor(say google search results). <a href="http://www.codeproject.com">Code Project <!-- Google search result link--> <img src="myimage.png"...
1
by: deegeorge | last post by:
Hi, I am facing a problem related to anchor tag. I am creating an anchor tag with some text. In the name am starting with #exam. When clicking on this link it need to go bottom of the page where...
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
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
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
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...
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,...

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.