Please report all spam threads, posts and suspicious members. We receive spam notifications and will take immediate action!
Results 1 to 6 of 6

Thread: Dynamic HTML code needed maybe?




  1. #1
    Join Date
    Feb 2003
    Posts
    64

    Default

    Good evening dudes

    I'm after some dhtml or html or javascript even. I want to control downloads of larger files on my website, I was pointed towards Dynamic HTML by someone, but I haven't learnt that yet. After much searching on the Internet my brain has gone to mush..lol :confused: .

    All I want to do is say allow 20 downloads per day for example. Hmmm now I'm rambling .
    Resident Tea Bag Sniffer!

  2. #2
    Join Date
    Feb 2003
    Location
    No where
    Posts
    445

    Default

    Dont worry, I always ramble:)

    Try these. They have links to others as well so you can pretty much just try the links till ya find what ya need.

    http://dynamicdrive.com
    http://javascriptkit.com

  3. #3
    Join Date
    Feb 2003
    Posts
    64

    Default

    Thanks for the links, might look tomorrow..done too much searching earlier. Haven't a clue what i'k looking for atm ;)
    Resident Tea Bag Sniffer!

  4. #4
    Join Date
    Feb 2003
    Posts
    64

    Default

    Well, unfortunately one is still stuck :cry: . Does anyone have the necessary code please? ;) ;)
    Resident Tea Bag Sniffer!

  5. #5
    Join Date
    Feb 2004
    Posts
    3

    Default

    Not going to happen with plain old javascript dude.

    Javascript works client-side, you need something happening server-side to record how many times each file is downloaded.

    Nothing is ever easy!

  6. #6
    Join Date
    Feb 2003
    Location
    No where
    Posts
    445

    Default

    K I re-read the question. Are you wanting 20/user or 20 globally?

    If its per user, all you need is cookies. Create a cookie and increment it for every download. If they clear thier cookies however then they can re-do them all.

    If its globally, then yea your gonna need some kinds of server-side script. That will involve PHP, ASP, Perl, CGI-bin, something like that, as well as either a database, or a file that you can write to. It would be helpfull to have cron jobs too so that you could reset the counter everyday at the same time.

    If your working off a free host, its not very likely that you will have all these features at your disposal. You may get a server-side language and a database, but the cron jobs are a huge security risk so its doubtful. A payed server should have all these. If not you can likely find one with them for the same price and transfer the domain/pages.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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