|
-
Mar 21st, 2000, 12:20 PM
#1
I am trying to figure out all the ways a hyperlink can be created in HTML. Right now I am working on a program that parses HTML into a list of links, I find the links by searching for instances of href=". It all works but I want to automate instances of links that don't have their full domain and prefix. I am a bit lost as to how browsers translate a link that starts with a ../path/filename. If anyone could explain this to me, I would be very grateful.
-
Mar 21st, 2000, 04:58 PM
#2
Lively Member
Check out...
http://members.dingoblue.net.au/~pri...nkstealer.html
If you want I can send you *parts* of the source code.
Regards,
 Paul Rivoli 
---------------------
[email protected]
http://members.dingoblue.net.au/~privoli
-
Mar 21st, 2000, 08:43 PM
#3
../path/file links are relative.
If you currently are in, http://www.microsoft.com/stuff/morestuff/index.html
then ../path/file will link to
http://www.microsoft.com/stuff/morestuff/../path/file
witch in turn is
http://www.microsoft.com/stuff/path/file
[.] stands for this dir
[..] is one dir up
-
Mar 22nd, 2000, 01:36 AM
#4
Thanks Azzmoda that is just what I was looking for, can there be more than two periods? The program is much like the example that privoli has, but I already got all the same functions to work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|