SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Fee Calculator

  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fee Calculator

    Hi everyone,
    It's been awhile since I've last been on this forum . . . Anyway, I just wanted to know if anyone knows how to make a fee calculator in javascript that functions similar to this page: http://www.towerhamlets.gov.uk/data/...es-calc.cfm?fp

    When you enter a number under "Qty", the two boxes that say "Application Fee" and "Inspection Fee" update automatically with their respective costs. If you scroll down to the bottom, I also like how all the totals and stuff dynamically update as you're filling in the rest of the values. I've created a much simpler calculator in javascript before but I just can't get it to work like how this one functions. If anyone can provide me with any help or simply just point me in the right direction, I would greatly appreciate it. Thanks!

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It uses the onkeyup event to call a script that recalculates the values. Horrible code, though.


Bookmarks

Posting Permissions

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