View Full Version : Question: XMLHttp object and how to set a link to :visited

04-15-2005, 05:32 PM
I've created a message board system, and I am using the XMLHttp object to load messages behind the scenes for browsers that support it.

Right now the process is:
1- User clicks on a message link
2- XML object calls getmessage.html which returns the message data
3- A DIV shows the message data through innerHTML.

The problem is, when the user clicks on the link, the browser doesn't consider the link as "visited" even though the "HREF" value of the hyperlink is the same page that the XML object is calling.

Is it possible to tell the browser that I have "visited" a link? I know it's a long shot because of security issues, but I am hoping that someone may have had a similar problem.

Just to re-iterate. I am not looking for alternative solutions. I want to know if this solution is possible.


04-16-2005, 12:34 AM
No it's not .. but it depends on the application how you re-create that. If you've already considered non-script browser elsewhere, such that there's no need for the <a> to have redundent noscript behavior, then you can replace the href and onlick with a single javascript: URI - such as href="javascript:someFunction(args)"

If the contents are different for each link, even if only by an otherwise-irrelevant change in argument value, then the link should show as visited once it's been clicked.