cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Hermann <christoph.herm...@guschtel.de>
Subject Re: Maintain the state of visited links
Date Tue, 29 Nov 2005 17:33:46 GMT
Fadi Qutaishat schrieb:

Hello,

> Do you think the encodeURL transformer would help me?

I don't think so. What i would do is remember on the serverside if a
link was already visited, and if so display the link styled with another
 class than an unvisited link.

You would then generate the links on the serverside (pseudocode):

if (MyApp.isVisitedLink(url)) {
  class="visited"
} else {
  class="link"
}
displayLink(url,class);


I.e.:
<a href="http://www.example.com/page.html" class="visited">Some Page</a>
<a href="http://www.example.com/p2.html" class="link">Other Page</a>

And "link" would style Links in blue and "visited" would style them in
green (or whatever else).

HTH
Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message