The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> detect visited links in browser
112233
post Jun 5 2008, 12:02 PM
Post #1





Group: Members
Posts: 4
Joined: 29-May 08
Member No.: 5,782



Hello,

I have some question about browser history and cache.

I have main.html as following:
<iframe src="test.htm"></iframe>
<a href="test.htm">link</a>

I load http://..../main.html in different browser.

In IE, it consider test.htm as not visited although it have been loaded in iframe. No matter how css is set, "link" always shows as not visited.
Only after I visit http://..../test.htm, then I load http://..../main.htm again, "link" shows as visited.

But in Firefox, it consider test.htm as visited, the first time I load http://..../main.htm, "link" shows as visited.

I believe this has something to do with how IE and fiiefox deal with history or cache.
I am wondering is there anyway to make "link" show as visited in IE?

Thank you very much.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 5 2008, 12:54 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 5,143
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



IIRC, MSIE updates link colors only when it refreshes the page. So if you're using links that don't change the page (which usually happens only with frames), then the link colors won't change after you click on the links.


--------------------
Darin McGrew
WDG Member since 1998

My involvement with the WDG is personal. The views I express here are mine alone and not those of my employer.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 5 2008, 01:26 PM
Post #3


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 7,207
Joined: 9-August 06
Member No.: 6



It seems even odder. I tried. It doesn't help to refresh or revisit the framing page. It doesn't help to refresh the page in the frame. It doesn't help to close IE and visit the page with the iframe again. Only thing that seems to do the trick is to visit the framed page directly. unsure.gif


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
112233
post Jun 5 2008, 01:41 PM
Post #4





Group: Members
Posts: 4
Joined: 29-May 08
Member No.: 5,782



Exactly. Only if I visit that test.htm directly, it will appear as visited.
Any idea about how to play a trick here to make IE think test.htm has been visited?
Thanks.

QUOTE(pandy @ Jun 5 2008, 01:26 PM) *

It seems even odder. I tried. It doesn't help to refresh or revisit the framing page. It doesn't help to refresh the page in the frame. It doesn't help to close IE and visit the page with the iframe again. Only thing that seems to do the trick is to visit the framed page directly. unsure.gif

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 5 2008, 01:55 PM
Post #5


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 7,207
Joined: 9-August 06
Member No.: 6



Can't think of anything less horrible than to open it in a popup. No idea how IE thinks. Never noticed this before.


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
112233
post Jun 5 2008, 02:03 PM
Post #6





Group: Members
Posts: 4
Joined: 29-May 08
Member No.: 5,782



I tired to open test.htm in a popup when loading main.htm, still the same. " link " appeara as not visited... huh.gif

QUOTE(pandy @ Jun 5 2008, 01:55 PM) *

Can't think of anything less horrible than to open it in a popup. No idea how IE thinks. Never noticed this before.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 5 2008, 02:51 PM
Post #7


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 7,207
Joined: 9-August 06
Member No.: 6



Hmm. Guess the page loads before the popup is fully loaded. wacko.gif


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jun 5 2008, 03:50 PM
Post #8


Programming Fanatic
********

Group: Members
Posts: 1,799
Joined: 23-August 06
From: Europe
Member No.: 9



How about this?
- http://www.colly.com/index.php?/weblog/com...links_reloaded/
- http://webdesign.maratz.com/lab/visited_links_styling/


--------------------
"The earth does not belong to Man, it is Man who belongs to the earth"
from Vue du ciel (in French)

"Leave scepticism to others and take action"
from HOME by Goodplanet

An inconvenient truth by Al Gore
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st November 2009 - 03:24 AM