112233
Jun 5 2008, 12:02 PM
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.
Darin McGrew
Jun 5 2008, 12:54 PM
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.
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.
112233
Jun 5 2008, 01:41 PM
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.

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.
112233
Jun 5 2008, 02:03 PM
I tired to open test.htm in a popup when loading main.htm, still the same. " link " appeara as not visited...
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.
pandy
Jun 5 2008, 02:51 PM
Hmm. Guess the page loads before the popup is fully loaded.