View Full Version : How can we implement multi-target/multi-destination linking

04-01-2003, 01:20 PM
I originally pondered this is Vladdy's unobnoxious pop-ups thread (http://www.codingforums.com/showthread.php?s=&threadid=17228), but it was OT for that thread ... so I'm starting it again here.

XLink gives us the possibility to build true hypermedia logic into web applications - document links may have more than one target, and may also indicate which pages link to them.

So I'm wondering how to implement that on a webpage. I was thinking maybe the links look the same, but when you click on them a little context menu appears - maybe left-click for a menu of forward-links, and right-click for a menu of retrograde-targets.

Any thoughts?

04-01-2003, 03:07 PM
i believe you can do it in DHTML.

If you are talking about a link that does 2 things then you can use javascript.

04-01-2003, 04:27 PM
Oh I know how to make it (but thanks for your answer all the same :))

I was after conceptual answers - is that a good way of presenting multi-links; would it be intuitive for non-technical users? Can anyone think of any better ways of implementing a link-structure like that?

Maybe others have already tried?

04-01-2003, 04:43 PM
you're idea for right and left click, doesn't appeal to me, because i like my context menu. but how about this: < something.com > (http://www.something.com) ? use the angled brackets as directional indicators?

04-01-2003, 05:16 PM
How about something like this which opens up when you activate the link:

+-----------------+ +-----------------+
| backlinks | link | forwardlinks |
+-----------------+ +-----------------+

Please forgive the bad ASCII art.

04-01-2003, 05:25 PM
actually, as i think about this, what good would multi-directional links even be? can someone give an example where it would be practical?

04-01-2003, 08:26 PM
Originally posted by joh6nn
actually, as i think about this, what good would multi-directional links even be? can someone give an example where it would be practical?
Loads of places ... potentially every hyperlink.

The most immediate example that comes to mind is my day job, for a research company, where we have a lot of articles which are political commentary. An article might say something like "our most recent polls on attitudes towards the monarchy have shown a marked change in feeling towards ... " and the phrase "recent polls on attitudes towards the monarchy" could link to five different surveys.

Or a link on your homepage could say "check out our latest scripts" and link to the five or ten most recent.

Or if you're writing an essay and you want to link to a citation source, but you want to link to it in more than one place, because several passages are equally relevant.

Sure, you can do all of these things which lists of links, or with normal menus; but this way all the links are semantically associated with the link text; such is the power of XLink :)

I reckon it's really exciting when you get thinking about it :thumbsup:

04-01-2003, 08:41 PM
A relevant document:

Mozilla already implements simple XLink. The requirement of a link manager is what is really keeping it from fully supporting it (build the framework, someone will implement it)