Setting up a relative link
I want to set up a relative link within a svg-based website. Here is the code I have now: <a xlink:href="http://../WEB00.svg" id="a3040"> <rect y="839.75012" x="257.37564" height="91.428574" width="282.85715" id="rect3009" style="fill:#ffff00;fill-opacity:1" /> </a> However my browsers (Seamonkey, Firefox, konqueror) can't follow the link.
I could use a non-relative link of course but that would mean loading the pages to my website or else moving them to my /var/www/htdocs file.
So a relative link would be a great convenience. Can anyone spot the error in my code above?
On Sun, May 18, 2014, at 08:13 AM, john Culleton wrote:
I want to set up a relative link within a svg-based website. Here is the code I have now: <a xlink:href="http://../WEB00.svg" id="a3040"> <rect y="839.75012" x="257.37564" height="91.428574" width="282.85715" id="rect3009" style="fill:#ffff00;fill-opacity:1" /> </a>
For a relative link in general (e.g. in HTML pages), the syntax would be only "../WEB000.svg". The browser gets the http:// and server from the base location of the page it has loaded. It drops the current filename part and then appends your relative link text.
participants (2)
-
john Culleton
-
Jon A. Cruz