Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 08:22 PM
PhillyFan
Guest
 
Posts: n/a
Default 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
  #2  
Old July 20th, 2005, 08:22 PM
Matthias Gutfeldt
Guest
 
Posts: n/a
Default Re: In page anchor problem

PhillyFan wrote:[color=blue]
> 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[/color]


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

  #3  
Old July 20th, 2005, 08:23 PM
Els
Guest
 
Posts: n/a
Default Re: In page anchor problem

PhillyFan wrote:
[color=blue]
> 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[/color]

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 -
  #4  
Old July 20th, 2005, 08:23 PM
Beauregard T. Shagnasty
Guest
 
Posts: n/a
Default Re: In page anchor problem

Quoth the raven Matthias Gutfeldt:
[color=blue]
> PhillyFan wrote:
>[color=green]
>> 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.[/color]
>[color=green]
>> http://admissions.usafa.af.mil/RR/CONFAQ.htm[/color]
>
> 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.[/color]

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.
  #5  
Old July 20th, 2005, 08:23 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: In page anchor problem

"PhillyFan" <philly_fan1@hotmail.com> wrote in
comp.infosystems.www.authoring.html:[color=blue]
>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[/color]

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.
[color=blue]
> http://validator.w3.org/check?charse....htm&outline=x[/color]

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/
  #6  
Old July 20th, 2005, 08:23 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: In page anchor problem

"Matthias Gutfeldt" <say-no-to-spam@gmx.net> wrote in
comp.infosystems.www.authoring.html:[color=blue]
>PhillyFan wrote:[color=green]
> > http://admissions.usafa.af.mil/RR/CONFAQ.htm[/color]
>
>It would be helpful to have the question repeated, e.g. as a heading
>above the answer.[/color]

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/
  #7  
Old July 20th, 2005, 08:23 PM
PhillyFan
Guest
 
Posts: n/a
Default Re: In page anchor problem

Stan Brown <the_stan_brown@fastmail.fm> wrote in message news:<MPG.1b65a9e37f50ed5898c770@news.odyssey.net> ...[color=blue]
> "PhillyFan" <philly_fan1@hotmail.com> wrote in
> comp.infosystems.www.authoring.html:[color=green]
> >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[/color]
>
> 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.
>[color=green]
> > http://validator.w3.org/check?charse....htm&outline=x[/color]
>
> 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.[/color]


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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles