…clicking the link takes me to cnn.com, but the AJAX stuff is ignored. How can I do both, i.e., keep the link active AND do the AJAX call to the server?
Thanks, your method works, although it means hard-coding the URL’s and link names as queries. The Jquery method conveniently writes the query for me.
I am still hoping for an answer to the original question just for the sake of it. I’d like to know if it’s possible to perform an AJAX request AND have a link behave normally. Not sure if it can be done or not.
Yup - just put onclick=“return false” in your <a> tag (you may or may not be able to move that into your external javascript code somewhere - it’s been a while since I’ve done it so can’t remember) and your browser won’t follow the link (unless you have javascript disabled)