C
Chad
Should links automatically appear in the "visited" color as defined by the
user's IE settings without having to add any special coding?
I have a situation where the link was not changing color until I added the
following style:
.vl:visited{color:#808080;}
And then referenced this style in my Anchor:
<a class="vl"
href="http://useaihp280:8080/espweb/servl...ort=5002&user=Web3&datagroup=cain&key1=156300"
target="_blank">
<font size="2">00156300</font></a>
However, if the target attribute is set to "_blank" (to get the results to
open in a new window, the next time the parent web page is refreshed/rebuilt
from the database (such as hitting the refresh button), IE does not
consistantly display visited links in teh visited color!
If I removed the "target=blank" attribute to open in the same window, IE
keeps track just fine.
Note that my local settings indicate to retain history for 7 days.
Note that the anchor is constructed using server sided script. what you see
above is the resulting generated html. The only thing that changes on the
hyperlink from row to row (there is one hyperlinkj per row in a table) is
the number added to the and of the query string which matches the link's
text property.
Why would IE keep track of some of these links and not others if they are
all built from the same line of server sided code?
Why is it necessary to use the vl.visited class style at all? In fact, this
overrides my local IE colors! Shouldn't IE keep track of whether I visited a
link without me having to do anything more than create the anchor tag? The
style class that I add should be, i feel, used only if I want to override
the user's IE color selection.
Where I am going wrong?
Many thanks for making it all the way to the end of this post!
Chad
user's IE settings without having to add any special coding?
I have a situation where the link was not changing color until I added the
following style:
.vl:visited{color:#808080;}
And then referenced this style in my Anchor:
<a class="vl"
href="http://useaihp280:8080/espweb/servl...ort=5002&user=Web3&datagroup=cain&key1=156300"
target="_blank">
<font size="2">00156300</font></a>
However, if the target attribute is set to "_blank" (to get the results to
open in a new window, the next time the parent web page is refreshed/rebuilt
from the database (such as hitting the refresh button), IE does not
consistantly display visited links in teh visited color!
If I removed the "target=blank" attribute to open in the same window, IE
keeps track just fine.
Note that my local settings indicate to retain history for 7 days.
Note that the anchor is constructed using server sided script. what you see
above is the resulting generated html. The only thing that changes on the
hyperlink from row to row (there is one hyperlinkj per row in a table) is
the number added to the and of the query string which matches the link's
text property.
Why would IE keep track of some of these links and not others if they are
all built from the same line of server sided code?
Why is it necessary to use the vl.visited class style at all? In fact, this
overrides my local IE colors! Shouldn't IE keep track of whether I visited a
link without me having to do anything more than create the anchor tag? The
style class that I add should be, i feel, used only if I want to override
the user's IE color selection.
Where I am going wrong?
Many thanks for making it all the way to the end of this post!
Chad