jasonc Posted August 20, 2008 Share Posted August 20, 2008 would Javascript be used to perform the following. link being click would increase a counter in my Db before the link it visited. <a href="www.site.com" (javascript code)></a> can anyone suggest a way of doing this ? thanks in advance Quote Link to comment Share on other sites More sharing options...
akitchin Posted August 20, 2008 Share Posted August 20, 2008 often times you'll want to send them to an interstitial page along with the URL they're SUPPOSED to go to, do the processing on that page, and then forward them onto their original destination. javascript, unless you use AJAX, will be unhelpful since it is client-side and cannot initiate server-side work. Quote Link to comment Share on other sites More sharing options...
jasonc Posted August 20, 2008 Author Share Posted August 20, 2008 yes true just remembers javascript is client side ! i do not use it normally, hardly ever. i shall check out ajax all i want to do is update the counters as my supporters are complaining that the redirect i currently use is not what they awnt for SEO purposes! thanks anyway Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.