Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2006, 01:42 PM
Registered User
 
Join Date: Aug 2006
Location: boston, ma, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default a:visited link clearing

When creating a:visited links is it necessary to clear to refresh the links upon re-entering the site

vferratusco
 
Old August 16th, 2006, 07:45 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I don't understand what you're asking. If you're saying that you want visited links to no longer be visited, yes, you will have to clear your cache to do that.

HTH!

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
 
Old August 17th, 2006, 09:04 AM
Registered User
 
Join Date: Aug 2006
Location: boston, ma, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Rich,

Thank you very much for your reply and the support.

I apologize for the miscommunication... I am a new web? (not sure what to call myself although my title is webmaster)... my site is @ www.tufts-nemc.org/icrhps and the css is @ www.tufts-nemc.org/icrhps/icrhpsstyle.css... this is the 1st site I have created and the 1st time using css... I have a programming background and believe in following standards (in this case W3C stanadards)... here I will try to communicate my situation; I would like to initiate visited links on the site and noticed that when I enter my site (live) that the visited links are still highlighted... I believe that saving this visited data to be a function of the OS and was wondering if there was a possible solution (in CSS) the clear the cache of this visited data upon exit, therefore, upon re-entering the site, the links would be refreshed... I may be creating a "mountain out of a molehole" and do not need to do anything... can you suggest what is standard or what I should be doing?

Thanks again,
Vinnie


vferratusco
 
Old August 17th, 2006, 09:13 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Do you want the links to say visited on a session basus, so to speak?

No, you can't mess with users' history. Good for you because they would curse you if you could and did. ;)

While I suppose what you want could be accomplished with some server side mechanism, I don't think it's a good idea. The user has already configured his browser and decided how long links should stay visited. If you change that I think it would be extremely confusing and may set users off searching for something wrong on their machine. If you must, rather use some additional feature that shows what pages has been visited this session or this day or whatever. Not that I know how to go about doing that, but I'm sure it can be done. :)

--
http://yupapa.com
 
Old August 17th, 2006, 09:19 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I guess it's possible, but it'd be pretty complex to create. Can't be done with CSS alone.

You can make your own record of visited pages, and store these in a session, via cookies (and javascript) or server-side software, and then style links appropriately based on that information.

As far as the browser's built in cache and browsing history and the CSS :link and :visited pseudo-classes; you don't have any control over those. Those are browser settings. You can prevent pages from being stored in the cache (but that won't affect pages inserted into the history). You can track the user's browsing history within your own website. But you can't access the user's cache or browsing history or remove data from those once it's there, as that would raise issues with privacy and security.

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
 
Old August 17th, 2006, 09:21 AM
Registered User
 
Join Date: Aug 2006
Location: boston, ma, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the rapid response... I did not think about that possibility, that is why using a forum like this is immeasurable... You are right, it is never a good practice to upset users... I will leave well enough alone... again, thanks for the support...:)

vinnie

vferratusco
 
Old June 11th, 2010, 11:45 PM
Registered User
 
Join Date: Jun 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default clear my visited css

I have the same problem with vferratusco, but the case I want make a little forum,

I want un-bold the thread title if user have ever visited the thread..it's work if I use :visited, but I want clear/back to bold again if there is a new posting to that thread which not posted by him self certainly..

it's not worked if I only use :visited because the web browser in client will save the history forever...

how could I solve this problem... I have searched, but I haven't find the right way...
please help me, I realy appreciate with your help..
 
Old June 12th, 2010, 03:44 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You could append something to the URL for the link, such as the ID of the last post. That way, it's considered a new link when the ID changes.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 16th, 2010, 11:20 AM
Registered User
 
Join Date: Jun 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Hi there,

You could append something to the URL for the link, such as the ID of the last post. That way, it's considered a new link when the ID changes.

Hope this helps,

Imar
Hi Imar, I have tried it and it's work.. thx for help...
I've been thinking about the cookie but it turns out the trick to change the URL..




Similar Threads
Thread Thread Starter Forum Replies Last Post
Visited link Issue mat41 CSS Cascading Style Sheets 10 May 14th, 2008 07:42 PM
Retrive Visited URL from FireFox senpark15 C# 2005 4 April 10th, 2008 12:35 AM
Chapter 3 - a:visited not working VeganMan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 April 3rd, 2008 12:31 AM
session based visited link style mat41 CSS Cascading Style Sheets 3 October 9th, 2007 12:39 AM
Have robots visited my site angrycat Apache Tomcat 2 February 22nd, 2005 09:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.