Maybe change the download link to go to the counter logic, and then have the counter logic actually start the download?
I'm not immersed in PHP at the moment, so no code, but maybe something like this: http://mikeleigh.com/dev/downloadcounter/ Force be with you Maureen! And while I'm no expert, if you need random help with the linux/mysql stuff, I'm sorta an expert. Meaning lots of experience, at least. :) Feel free to hit me up off list whenever, as always. If I can, I will. -- Every man, wherever he goes, is encompassed by a cloud of comforting convictions, which move with him like flies on a summer day. Bertrand Russell On Mon, Sep 14, 2009 at 5:46 PM, Maureen wrote: > > I have this button to click to download a file, and an href that > points to the file for manual download or to our client for auto > download and install. If you click the button the download dialogue > box pops up so the file can be downloaded. However I need to update > the database with a count of all files downloaded. So I want to do an > ajax call with a javascript when the button is clicked, then present > the file for download but this has to be a one-click process. My > brain is dead from 32 straight hours of work. Any thoughts on the > best way to handle this? > > No coldfusion...javascript or ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:304019 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
