473,769 Members | 4,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does <A HREF hyperlink require "http://..."?

Is it absolutely necessary to include "http://" in an A HREF hyperlink?
Would it be wise to remove this from one's Links page, just to save code?
Jan 4 '06
31 4865
Alan J. Flavell wrote:
On Thu, 5 Jan 2006, Harlan Messinger wrote, quoting me:

It's the only way to get back into synch for resolving relative
URLs.


[..]
So, for example, if the request was for

http://www.example.com/xyz/abc

and a document were returned, the client would think the document
was abc in the directory xyz rather than some anonymous default
document in directory xyz/abc. If the user activated a link in this
document defined by the tag <a href="123.html" >, the client would
send a request for

http://www.example.com/xyz/123.html

when the link was intended to lead to

http://www.example.com/xyz/abc/123.html

Is that it?

You've got it!

But try to stand clear of the term "directory" in URLs. In a sense,
the URL hierarchy does define some kind of abstract file system "in
URL space", but just exactly how that abstract file system maps to a
real file system inside the server is entirely a private concern of
the server and its configuration. It might be anything from a
straight URL-to-filesystem mapping, to a relational database lookup
with no real "file system" structure involved at all.


Understood. (I expect that that's the motivation behind the use of the
term "channel" in content management system terminology.) Still, the
clearly hierarchical notation screams for a term to refer to the
terminal and non-terminal levels in a particular hierarchy. What terms
ought to be used for these? I've been using "resource" for the terminal
(or "leaf") level, but still want there to be a name for the
non-terminal (or "branch") level.
Jan 10 '06 #31
On Tue, 10 Jan 2006, Harlan Messinger wrote, quoting me:
But try to stand clear of the term "directory" in URLs. In a
sense, the URL hierarchy does define some kind of abstract file
system "in URL space", but just exactly how that abstract file
system maps to a real file system inside the server is entirely a
private concern of the server
[...]
Still, the clearly hierarchical notation screams for a term to refer
to the terminal and non-terminal levels in a particular hierarchy.
Understood, but I'm not sure there's an easy answer to that. We'd
best take a look at http://www.ietf.org/rfc/rfc3986.txt for
inspiration...

In section 1.2.3 it refers to "components " when the context is
otherwise clear; or variously to "URI components" or "hierarchic al
components" depending on what emphasis is intended.

In the syntax specs, see e.g section 3.3, it also refers to the
hierarchical components as "path segments", although that is focussing
more on their syntactic structure than on the hierarchical role that
they play.
I've been using "resource" for the terminal (or "leaf") level, but
still want there to be a name for the non-terminal (or "branch")
level.


I suspect that the closest in meaning to what you had in mind when you
wanted to say "directory" was "hierarchic al component", but it's quite
a mouthful to use in practice. "Path" (for that whole portion of the
syntax) or "path segment" (for each component of it) may be snappier
terms if the reader otherwise understands how they fit into the
picture.

best I can suggest at this time of night, sorry...
Jan 10 '06 #32

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

Similar topics

6
1898
by: Uwe Mayer | last post by:
Hi, when extending a build in class, what does the constructor __init__(...) have to return? and how does the constructor call its base-class construtor? (or is this done automatically?) I want to derive from "file" to create a class that reads record from a binary file:
24
4495
by: sinister | last post by:
After doing a websearch, it appears that it's OK to omit the "http:" to form a relative URL. Are there any pitfalls to this? For example, if there is a page http://www.domain1.com/page1.html with a link to http://www.domain2.com/page2.html you can abbreviate the second link as //www.domain2.com/page2.html
11
14653
by: whisher | last post by:
Hi. Sorry to disturb you but I can't figure out its use in this snippet (Found in many scripts about Ajax) function loadpage(page_request, containerid) { if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)) { document.getElementById(containerid).innerHTML=page_request.responseText;
1
2377
by: silverachilles | last post by:
Hello, I have php code which takes an rss feed and outputs it on a page of my website. For each item it shows the link, title and description. My problem is the description element contains a lot of information (some links and other stuff) and I want to extract one of the links out of this information, so that on my webpage I am shown the link, title and the link I want out of the description, for every item. How would I achieve this? If...
0
9589
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
9423
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
10211
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
10045
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
7409
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
6673
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
5299
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
3959
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
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.