> I have links which updates some content when the user click the link. > The problem is that my users complain that the links aren't turning to > the :visited color after they have visited the link. How could I > achieve :visited colors to the clicked ajax links.
You need an href that matches the XHR URL. You don't have to follow the href (preventing default), but CSS needs it to match to the browser history. Either that, or you can add a CSS class like 'fakevisited' onRequest and also record all this info in your db so you can render in the markup afterward. But for accessibility purposes, it's best to have the href in there anyway, and much more manageable. I don't like to fake visited but really use the browser to the fullest (also allowing people to clear their history, use InPrivate sessions, etc. as expected). -- S.
