473,224 Members | 1,382 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,224 software developers and data experts.

On-Page Anchors not working properly

Strangely, on-page anchors will work on MSIE, but not on Netscape7.2
or Firefox1.5. All anchors are numbers e.g. <a href="#21">TOPIC</a>
supposed to connect down to <a name="#21>beginning of text</a> .

Could be further complicated by the ASP and SQL designation of URL.
like: http://sampleURL.org/FAQs.asp?FAQMID...=10&bmode=Main
W3C validator said 91 errors, mostly on tables, fonts and graphics,
but didn't seem to complain about anchors. Any ideas? TIA Rich
Dec 8 '05 #1
12 2343
Deciding to do something for the good of humanity, Rich
<ri***********@ntplx.net> spouted in
comp.infosystems.www.authoring.html:
<a href="#21">TOPIC</a> <snip> supposed to connect down to <a name="#21>beginning of text</a> .


No, it links to id="21" or name="21".

You haven't closed the quote on the name attribute. And if you want to
link to "#21", you would need use href="##21".

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/
Dec 8 '05 #2
In our last episode,
<43***************@ntplx.net>,
the lovely and talented Rich
broadcast on comp.infosystems.www.authoring.html:
Strangely, on-page anchors will work on MSIE, but not on Netscape7.2
or Firefox1.5. All anchors are numbers e.g. <a href="#21">TOPIC</a>
supposed to connect down to <a name="#21>beginning of text</a> .
NAME (ID) attributes must begin with a letter.
Could be further complicated by the ASP and SQL designation of URL.
like: http://sampleURL.org/FAQs.asp?FAQMID...=10&bmode=Main
W3C validator said 91 errors, mostly on tables, fonts and graphics,
but didn't seem to complain about anchors. Any ideas? TIA Rich


--
Lars Eighner us****@larseighner.com http://www.larseighner.com/
War on Terrorism: The Difference Between Us and Them
"We should invade their countries, kill their leaders and
convert them to Christianity." -- Ann Coulter
Dec 8 '05 #3
Deciding to do something for the good of humanity, Lars Eighner
<us****@larseighner.com> spouted in comp.infosystems.www.authoring.html:
NAME (ID) attributes must begin with a letter.


The name attribute is CDATA[1], not ID.
http://www.w3.org/TR/html4/struct/li...ml#adef-name-A

[1] Except on the meta element, where it is NAME.

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/
Dec 8 '05 #4
Mark Parnell, in an effort for more picturesque speech, wrote::

Deciding to do something for the good of humanity, Lars Eighner
<us****@larseighner.com> spouted in comp.infosystems.www.authoring.html:
NAME (ID) attributes must begin with a letter.


The name attribute is CDATA[1], not ID.
http://www.w3.org/TR/html4/struct/li...ml#adef-name-A

[1] Except on the meta element, where it is NAME.

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/


The quotes are actually closed, that was a typo of mine.
So we are learning that, advise if wrong
1. the name of the name, no pun intended, must start with
an alpha character, not a number or other symbol.
2. destination name must only say <name=""> NOT <a name="">??
3. the origination uses the #"" the destination only gets only "".

I am going to look this up in my HTLM for Dummies manual :-)
ID is a newer arrangement, will find out how that works too.
Apparently the long URL is not also a factor in this problem.
But ain't first MSIE/Netscape/FireFox mixup we have discovered,
they once gave us http:\\www. etc, that link worked on Exploder.
Thanks muchly, Rich
Dec 8 '05 #5
Deciding to do something for the good of humanity, Rich
<ri***********@ntplx.net> spouted in
comp.infosystems.www.authoring.html:
The quotes are actually closed, that was a typo of mine.
Good reason to post a URL instead of just snippets of code.
So we are learning that, advise if wrong
1. the name of the name, no pun intended, must start with
an alpha character, not a number or other symbol.
Wrong. See my reply to Lars. Though it may be a good idea anyway. But
technically it can start with any letter in the page's character set.
2. destination name must only say <name=""> NOT <a name="">??
Definitely wrong. Not sure where you got that idea from.
3. the origination uses the #"" the destination only gets only "".
Correct. Whatever the "destination" you are linking to is, add a # to
the beginning for the link.
ID is a newer arrangement, will find out how that works too.
Using id instead of name has been around since HTML4, which was
published in 1998. All modern browsers support it, as does IE.
Apparently the long URL is not also a factor in this problem.


No. But it is part of your validation problems - the ampersands (&)
should be encoded as &amp;

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/
Dec 8 '05 #6
Mark Parnell wrote:
So we are learning that, advise if wrong
1. the name of the name, no pun intended, must start with
an alpha character, not a number or other symbol.
Wrong. See my reply to Lars. Though it may be a good idea anyway. But
technically it can start with any letter in the page's character set.


The formal syntax declares the NAME attribute as CDATA, which means
"anything goes" - it may contain any _Unicode characters_ (not just
letters). The ID attribute is a different story, of course: its value
must be an identifier.

On the other hand, to be useful, the value of a NAME attribute in an A
element needs to be of a form that is allowed in a URL. This imposes
essential restrictions.

On the practical side, it is best to use only lowercase ASCII letters a
to z, digits 0 to 9, and perhaps hyphen "-" in anchor names. Anything
else tends to cause problems.
Using id instead of name has been around since HTML4, which was
published in 1998. All modern browsers support it, as does IE.


Some people say that Netscape 4, which does not understand ID, still has
a nonneglible market share.
Dec 8 '05 #7
On Thu, 8 Dec 2005, Jukka K. Korpela wrote:
Some people say that Netscape 4, which does not understand ID, still has
a nonneglible market share.


Not even Peter T. Daniels uses Netscape 4.

--
Netscape 3.04 does everything I need, and it's utterly reliable.
Why should I switch? Peter T. Daniels in <news:sci.lang>

Dec 8 '05 #8
Mark Parnell wrote:
Deciding to do something for the good of humanity, Rich
<ri***********@ntplx.net> spouted in
comp.infosystems.www.authoring.html:

<a href="#21">TOPIC</a>


<snip>
supposed to connect down to <a name="#21>beginning of text</a> .

No, it links to id="21" or name="21".

You haven't closed the quote on the name attribute. And if you want to
link to "#21", you would need use href="##21".


If he cares about correctness of his code, rather than just whether it
happens to work in particular browsers, he won't have ID or NAME
attributes that contain "#" or begin with a digit.
Dec 8 '05 #9
Deciding to do something for the good of humanity, "Jukka K. Korpela"
<jk******@cs.tut.fi> spouted in comp.infosystems.www.authoring.html:
The formal syntax declares the NAME attribute as CDATA, which means
"anything goes" - it may contain any _Unicode characters_ (not just
letters).
Indeed - carelessness on my part. I meant to say character, not letter.
Some people say that Netscape 4, which does not understand ID, still has
a nonneglible market share.


I'm not one of those people (though admittedly to some extent it could
be site-dependent). :-)

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/
Dec 8 '05 #10
Mark Parnell wrote:

Deciding to do something for the good of humanity, "Jukka K. Korpela"
<jk******@cs.tut.fi> spouted in comp.infosystems.www.authoring.html:
The formal syntax declares the NAME attribute as CDATA, which means
"anything goes" - it may contain any _Unicode characters_ (not just
letters).


Indeed - carelessness on my part. I meant to say character, not letter.
Some people say that Netscape 4, which does not understand ID, still has
a nonneglible market share.


I'm not one of those people (though admittedly to some extent it could
be site-dependent). :-)

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/


Once upon a time...
Anyway, thanks for the re-education, I downloaded, fixed it so
<a href="#xx">link</a> now links to <a name="xx">ref.text</a>.
Thought nesting problem, it's buried very deep, but it works.

Now all I have to do is convince the webmaster to revise it so
it will work in other browsers besides IE. I've been doing the
same thing for five years now :-) BTW this is N4.78 on IBM PS/2
w/win95, also WFW3.11/N3.04 on other hard drive. TNX Rich CT USA
Dec 9 '05 #11

On Thu, 8 Dec 2005, Mark Parnell wrote:
Deciding to do something for the good of humanity, Rich
<ri***********@ntplx.net> spouted in
comp.infosystems.www.authoring.html:

[snip]
ID is a newer arrangement, will find out how that works too.


Using id instead of name has been around since HTML4, which was
published in 1998. All modern browsers support it, as does IE.

[snip]

Including my browser of choice, Lynx 2.7 (just tested). (Whether anyone
would consider that version of Lynx to be modern is another story.)

--
Norman De Forest http://www.chebucto.ns.ca/~af380/Profile.html
af***@chebucto.ns.ca [=||=] (At the Sign of the Flashing Cursor)
"Oh how I miss the days when it was easier to catch gonorhea than a
computer virus." -- Big Will in alt.comp.virus, March 9, 2005

Dec 21 '05 #12
Tue, 20 Dec 2005 21:08:48 -0400 from Norman L. DeForest <af380
@chebucto.ns.ca>:

On Thu, 8 Dec 2005, Mark Parnell wrote:
Deciding to do something for the good of humanity, Rich
<ri***********@ntplx.net> spouted in
comp.infosystems.www.authoring.html:

[snip]
ID is a newer arrangement, will find out how that works too.


Using id instead of name has been around since HTML4, which was
published in 1998. All modern browsers support it, as does IE.

[snip]

Including my browser of choice, Lynx 2.7 (just tested). (Whether anyone
would consider that version of Lynx to be modern is another story.)


Netscape 4 didn't support ID, but if I recall correctly IE 4 did.
Netscape 6 id, as did all the Mozilla and Firefox releases.

--
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.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Dec 21 '05 #13

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

Similar topics

4
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
1
by: David Walker | last post by:
Hi I've got two servers I can use for a website. The one (I'll call it 'X') I need to keep most of the site on doesn't have all the PHP libraries on I need, but I can't put the whole site on the...
0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
3
by: TJ | last post by:
I need information on how to implement the PFPRO function within Verisign on a Windows platform. I hope it isn't true but I believe Verisign does not support PFPRO functions on Windows platforms...
3
by: Bruce W.1 | last post by:
With ASP.NET I've found that request are processed sequentially, one at a time, at least on a server with one CPU. If one request blocks for some reason, maybe on a long database query, then all...
6
by: Hasan Ceylan | last post by:
Hi Everyone, Recently we have started to have performance problems on our server which has the following configuration: Win 2K IIS 5 php The traffic to our web site is on normal time 300...
2
by: Robert | last post by:
I am using the php4-cgi Debian package which is based on PHP 4.3.4. I have problems when running php4 on the command line. If I say something like $ php4 index.cgi a number of variables...
4
by: Artem | last post by:
hello. this is the setup: i have 2 computers at home. one of them has a registered domain name, and is acting as a web server (runs under windows 2003 iis6). my second machine has apache...
2
by: MLH | last post by:
I have an AMP application running on linux server that collects, maintains and serves up image files to web clients. On my LAN (in fact, on the same subnet) I have both the linux box and windoze...
2
by: Stuart Rogers | last post by:
My hosting service uses PHP 4.3.10 and when I run a php script which works perfectly on my local lan linux server on my hosting service I get this error:- Parse error: parse error, unexpected...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.