I'm not really an expert on javascript, but: what you want to do is take the url out of the href tag, so that clicking the link doesn't take you away from the page. Then in your "onclick" handler you need to call a js function that makes an "ajax" call. when you get a successful reply, in your callback function you can find find the document element that represents the number and change it's innerHTML property. Since I only know the basics and there are plenty examples of ajax calls out there, it's probably better to do a search to find one (or maybe someone else will post one).
|