Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tracking Downloads

    Here is the senario summarized:

    When someone downloads a trial of our app, we need a conformation page to popup as soon as the download is complete for this app. the this app for stat purposes. If at all possible we only want to track unique completed downloads, but at this point we will take just the completed downloads. One this confo page will be a "tracking" link that will report back to the server that the app has been completed, for a paticular source.

    I have everything else figured out but i do not know how get that confo page to popup once the app is done. Do any of you know how to accomplish this?

    Thanks!!

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    I don't think it's possible to detect if download is complete. You can track how many times the file is "downloaded" (just like this forum does on thread attachments) but you don't know how many users actually cancels the downloading process. By "downloaded", I mean the request to fetch the file was processed by the server and the response to the client is already sent (Download dialog is displayed). By the time the user chooses Save or Open, javascript has no access to his choice, more so to the completeness of the download.

  • #3
    New Coder
    Join Date
    Apr 2004
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i heard it was possible, and i thought asp would do it, but i got a big no on it, and someone said javascript might, so i am at a loss, but i have to figure out some way to work it heh.........

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think it's possible either, and certainly not with javascript - you've no way of knowing if somebody completely downloaded a file - all you can do is log how many start to download it.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #5
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Well. . .
    Just a thought, IE only, but you could use ActiveX and JavaScript to check for the existance of the file and return the file size in case it allowed for a partial download. Don't have time to test or show an example but here is a good reference link. The more knowledgeable may be able to tell you if it is a waste of time to try or not.

    http://www.webreference.com/js/column71/8.html

    Basscyst
    Last edited by Basscyst; 04-28-2004 at 05:54 PM.
    Helping to build a bigger box. - Adam Matthews

  • #6
    New Coder
    Join Date
    Apr 2004
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this helps some.

    All i am trying to do is get a page to popup once the download is complete. The tracking is more or less taken care of....if i cant get the popup to happen, i can't even start thinking about tracking lol

    thanks for help thus far

  • #7
    Regular Coder
    Join Date
    Feb 2004
    Location
    WA
    Posts
    213
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can do this in a server side language. All you need to do is serve the download using your own script rather than letting the web server do it. That way, you can detect when the user clicks cancel or when the download is complete. You can then update a database from this script and let the javascript on the HTML page poll for the completion of the download by querying the server. Kind of long winded, but technically it is feasible.
    Nobody is Perfect. I am Nobody.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •