Conditional <a> ?

Hi,

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
ahead)

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 :-)

Thanks,

   Herman

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