W3C home > Mailing lists > Public > www-svg@w3.org > October 2003

Conditional <a> ?

From: Herman Kuiper <herman@frontier.nl>
Date: Tue, 21 Oct 2003 19:31:46 +0200
Message-ID: <004101c397f9$692fd860$2001a8c0@krabsalade>
To: <www-svg@w3.org>


I'm trying to get an SVG containing a flowchart to work in such a way that
depending on the currently selected path, some of the nodes will navigate to
another page via the <a xlink:href> tag (but not all end nodes of the
flowchart, only those which are reachable via the currently selected path).
In a previous version of the SVG, I used a containing HTML document and a
JavaScript function there to do the trick, but now the SVG also has to work
with the Corel plugin, and as far as I can see, that doesn't provide
'parent' to refer to the HTML document.

Some things I've tried are

* having the onclick() handler return true or false (in HTML you can use
that to cancel navigation through <a>)

* trying to modify the xlink:href attribute "just in time" (i.e. in the
onclick handler)

* modifying the xlink:href attributes of all flowchart nodes for the nodes
connected to the currently selected node (i.e. enable those links one step

So far, nothing seems to work. Has anyone an idea on how to solve this, and
have <a> elements disabled/enabled from within the SVG itself? Any other
compatible way to navigate to other pages without using <a> and without
having access to the containing HTML document are fine as well :-)


Received on Tuesday, 21 October 2003 13:38:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:59 UTC