473,756 Members | 8,108 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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">TOPI C</a>
supposed to connect down to <a name="#21>begin ning 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 2374
Deciding to do something for the good of humanity, Rich
<ri***********@ ntplx.net> spouted in
comp.infosystem s.www.authoring.html:
<a href="#21">TOPI C</a> <snip> supposed to connect down to <a name="#21>begin ning 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.infosystem s.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">TOPI C</a>
supposed to connect down to <a name="#21>begin ning 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****@larseigh ner.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****@larseig hner.com> spouted in comp.infosystem s.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****@larseig hner.com> spouted in comp.infosystem s.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.infosystem s.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 "destinatio n" 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.lan g>

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

<a href="#21">TOPI C</a>


<snip>
supposed to connect down to <a name="#21>begin ning 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.tu t.fi> spouted in comp.infosystem s.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

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

Similar topics

4
12455
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
1
2155
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 other (called 'Y') because I can't use the database from there. So, I need a way to be able to call the libraries (GD and PDF) from X with the functions on Y. For both of these, I need to be able to write the result of the function running on Y...
0
3638
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 Linux, connecting to MS SQL Server, unless it was already pre-installed by your Linux installation, is to build your own multithreaded TCP socket server on Windows and connect to it through the socket API in PHP on Linux (if you have installed...
3
2339
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 only Unix. Has anyone handled e-commerce transaction via PHP on a Windows platform through Verisign. Again does anyone have any examples or has anyone here implemented an ecommerce site utilizing PHP on a Windows platform through Verisign using...
3
2569
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 users must wait until it completes, for their request to process. This leaves me wondering about PHP running on IIS and Window. Does this hold true for PHP also? What about PHP on Unix? Does this allow true simultaneous processing of all...
6
2299
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 - 400 concurrent
2
7683
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 are not initialized. For example, $HTTP_GET_VARS is not set. To get it set, here's my workaround:
4
2152
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 configured with php, perl, and mysql installed. i wanted to make my 2nd machine accessible from the internet, so i have created a virtual directory on my 1st machine, pointing to my htdocs directory on the 2nd machine. when i try to access a .html or .txt...
2
1523
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 clients. The window$ boxes are staffed by persons who sometimes email the image files stored on the linux box to various recipients. For simplicity, lets call my linux box L and my windoze box W. Both are nodes on the LAN. Here are the knowns: ...
2
1643
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 T_STRING, expecting ')' in /home/fhlinux199/s/user/htdocs/graph_all.php on line 1114 When I look at the file I can find nothing wrong, as I say on my linux box with a later level of PHP it parses fine and executes. If I edit the file and simply...
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10040
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9873
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9846
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7248
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.