Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question: XMLHttp object and how to set a link to :visited

    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.

    Thanks!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •