
alfonso
Posts: 121
|
| Posted: 11/05/2008, 10:11 PM |
|
I want to know in CCS 4, how can I do to save in a table IP, date and id_file when someone clic to download a file. Is there an "onclick" event or similar?
Thanks
|
 |
 |
Gena
Posts: 591
|
| Posted: 11/05/2008, 10:42 PM |
|
Take a look at http://forums.yessoftware.com/posts.php?post_id=101071
I have posted example of that script. In UPDATE part you can calculate and add/update any other fields you need.
_________________
Gena |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 11/06/2008, 8:41 AM |
|
Hi
It might be easier than that. Not sure but consider on your download page having a record that will update a table with the data you want.
Make the fields hidden and load them up in before show events with the data you want to put into your table. Make the download button a submit button for insert with return page being the page that will serve up your download. (Be sure to have hidden fields for the url parameter to that download script)
What will happen is when you click download your table will be updated with what ever fields you loaded in the before show events and your download server scipt will deliver the download for you.
I think the advantage of this could be your pages are 100% CCS and very easy to update and modify since there would be no custom code. That also makes it potable to the other languages CCS supports. The download scripts would only requires minor custom code.
Here is sort of an example using video download. but it is entirely CCS standard pages
http://realtest.biz/viewconversion.php
If you would like more info let me know
Have Fun
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
|

|
|
|
|