Google Answers Logo
View Question
 
Q: bookmarks (internal anchors) ( Answered,   0 Comments )
Question  
Subject: bookmarks (internal anchors)
Category: Computers > Internet
Asked by: jude1-ga
List Price: $15.00
Posted: 21 Jun 2005 15:28 PDT
Expires: 21 Jul 2005 15:28 PDT
Question ID: 535648
Some of the bookmarks (internal anchors) I've created on my site work,
and some don't. I'm looking to be able to post to a discussion group
about a specific thing on a long page, but sometimes when I post the
bookmark, it just takes users to the page without going to the part of
the page specified by the bookmark. The bookmarks work fine once you
get to the page, but if you are trying to get right to the bookmark
from outside the site, only some of them work. I don't know why some
work and some don't. What I'd like is for someone to look at the two
pages in question and tell me which ones DON'T work from outside the
site and how to fix them. The pages are
www.mammasmilk.com/pages/news.php and
www.mammasmilk.com/pages/celebrities.php
Answer  
Subject: Re: bookmarks (internal anchors)
Answered By: websearcher-ga on 21 Jun 2005 16:44 PDT
 
Hello jude1:

Thanks for the interesting question. 

I've had a look at the source code for your pages and the problems you
mention all stem from improper use of "named anchors" - or internal
jumps. Contrary to what you said in your question, these mistakes are
also causing the jumps to not work within your pages as well.

Thankfully, the mistakes are easy to fix by editing the source code
for these pages. You've simply forgotten to put in some target anchor
links or you've made minor typos in constructing these links. What do
I mean by forgetting to put in target links? Well, in your table of
contents for the pages, you've got all the links like

<A href="#yourname">

but you haven't got all the target links that match up like

<A name=yourname></A>

So, when you try to access the related article from outside (or
inside) the page, nothing happens because there's no target location
to go to!

I tested all your internal jumps on both pages, and the following are
the the mistakes you need to correct:

Page: www.mammasmilk.com/pages/news.php 

1. <A href="#bodyglove"> is missing

<A name=bodyglove></A>

Insert it directly before 

<H4 class=articleTitle>BODY GLOVE FOR BABY.</H4>

2. <A href="#KangarooKorner"> is missing

<A name=KangarooKorner></A>

Insert it directly before

<H3>
<HR>
A hands-free stroller </H3>


Page: www.mammasmilk.com/pages/celebrities.php

1. <A href="http://www.mammasmilk.com/pages/celebrities.php#Heidi Klum">

needs to have the space between "Heidi" and "Klum" removed like:

<A href="http://www.mammasmilk.com/pages/celebrities.php#HeidiKlum">

so that it matches the syntax of the target link which is

<A name=HeidiKlum></A>


Another issue that you have is the "Celebrities" sidebar that appears
on the righthand side of both these pages. Some sort of program cycles
the images that come up in this sidebar for different visits to these
pages. However, the links that in this sidebar are all incorrect. In
most cases that I could find by refreshing these pages, the link in
these sidebars has an extra space (represented by "%20") that needs to
be removed. Spaces count within HTML tags! Two examples:

1. In the Celebrities side bar, where you have the text "Sadie Frost
creates a new line of baby slings.",

<A 
href="http://www.mammasmilk.com/pages/celebrities.php#Sadie%20Frost">

should have the "%20" removed so that it reads 

<A 
href="http://www.mammasmilk.com/pages/celebrities.php#SadieFrost">

so that it matches the syntax of the target link which is

<A name=SadieFrost></A>

2. In the Celebrities side bar, where you have the text "Cindy
Crawford slings her baby.",

<A 
href="http://www.mammasmilk.com/pages/celebrities.php#Sadie%20Frost">

should have the "%20" removed so that it reads 

<A 
href="http://www.mammasmilk.com/pages/celebrities.php#SadieFrost">

so that it matches the syntax of the target link which is

<A name=SadieFrost></A>

You need to go into whatever file is generating these sidebars and
edit the content so that the links are correct.

Please let me know if making these changes helps fix the problems that
you noted in your question.

Search Strategy (on Google):
* HTML "named anchor"

websearcher
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy