Forum Moderators: open

Message Too Old, No Replies

self-counting link code

         

sssweb

3:05 pm on Nov 13, 2011 (gmt 0)

10+ Year Member



Is there a way to create link code that counts how many times the link has been clicked and either:

a) sends that count data to the link destination, or

b) uses the count data to modify the link destination (i.e. add a running 'count' var to the end of the link destination code)

The link destination may be a php function or an in-page bookmark, but all processing must be done without re-loading the page.

penders

5:16 pm on Nov 13, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Dup thread: counting user actions [webmasterworld.com]

sssweb

5:18 pm on Nov 13, 2011 (gmt 0)

10+ Year Member



An alternate solution would be to pre-load certain page URLs (actually in-page bookmarks) into the history, so that I can use simple back/next links.

Can you pre-load js history with certain pages?

sssweb

7:52 pm on Nov 13, 2011 (gmt 0)

10+ Year Member



Sorry, I know this is a dup thread; not sure whether php or js is the best solution here, so I'm posting in both.

sssweb

12:45 pm on Nov 14, 2011 (gmt 0)

10+ Year Member



I'm working on an alternate solution, so this thread is closed.