goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

Counter doesnt update #15

Closed mjeduar closed 11 years ago

mjeduar commented 11 years ago

The counter doesn't update after download the file

I have to refresh the page to update the counter

[[!FileDownloadLink? &getFile=[[+file]] &countDownloads=1 &tplCode= <a href="[[+link]]" title="[[+filename]]"> [[+filename]] ([[+count]] downloads) </a> ]]

or I am missing something?

Thanks

goldsky commented 11 years ago

well, I'm not implementing Ajax, so yeah, the counter stays when user clicks it. it's easy though to manipulate that.

mjeduar commented 11 years ago

Please could you tell me how, I don't want to implement ajax, is possible by other way if not how would be for ajax with FileDownloadLink

Thanks

goldsky commented 11 years ago

using jQuery?

mjeduar commented 11 years ago

ok thank you done, I did it with jquery. FileDownloadLink super

Thnks