Re: Problem with visited links

Johan Brichau <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
You can also keep reference of the visited ‘pages' in the session state and generate the anchors with a css class to color them yellow.
For example, if the links are in a menu component, you can keep the already visited menu items in the session state and render the menu items differently using that information.

I think that would be easier than hand-crafting the urls, unless you implement a complete ‘Seaside-Router’ package, which would be very interesting of course.

Johan

> On 14 Sep 2017, at 22:46, David Pennington <[email protected]> wrote:
> 
> So, if I hand carve the links, I should be able to get this working. It is bugging my customer so I have to do something!
> 
> 
> Thanks Joachim.
> 
> 
> --------- Original Message ---------
> From: "[email protected]" <[email protected]>
> To: "David Pennington" <[email protected]>, "Seaside - general discussion" <[email protected]>
> Subject: Re: [Seaside] Problem with visited links
> Date: 09/14/2017 20:55:14 (Thu)
> 
> David,
> 
> you are not doing anything wrong. Open your web browser's Developer tools and look at the links that were rendered by seaside: they contain URL parameters that are unique for every render (the part after the ? in the href parameter), so technically, the link is never visited, because every time you render that page, the URL parameters will be different (this is a simplification with edge cases and people can start picking on me, but you get the picture).
> 
> There are ways to make Seaside use "nice" URLs, but out of the box, this is just the way it works.
> 
> Joachim
> 
> 
> Am 14.09.17 um 21:50 schrieb David Pennington:
>> Hi there. I have a hybrid site where some pages are rendered by Seaside (using Instantiations VisualAge) and some are straight HTML. In the HTML pages, I use the following in a css:
>> 
>> a:link {
>>     color: red;
>> }
>> and
>> a:visited {
>>     color: yellow;
>> }
>> This works fine. In my Seaside pages, I use a css method with the same content but the visited links all turn up in a dark red, no matter which colour I say to use. This is the same on all browsers tested across both Windows and Macs Safari, Firefox, Edge.
>> 
>> Am I doing something wrong?
>> 
>> David
>> 
>> Message sent using Winmail Mail Server
>> 
>> 
>> _______________________________________________
>> seaside mailing list
>> [email protected] <mailto:[email protected]>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
> 
> 
> -- 
> -----------------------------------------------------------------------
> Objektfabrik Joachim Tuchel          mailto:[email protected] <mailto:[email protected]>
> Fliederweg 1                         http://www.objektfabrik.de <http://www.objektfabrik.de/>
> D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com <http://joachimtuchel.wordpress.com/>
> Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1
> 
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.