Results 1 to 10 of 10
  1. #1
    A simple JavaScript calculator
    mraya's Avatar
    Member Since
    Feb 27, 2005
    Location
    Framingham, MA
    Posts
    940
    Specs:
    MacBook C2D 2.4 2GB
    A simple JavaScript calculator
    I need a very simple and small HTML document with JavaScript, basically a simple calculator, that asks for two values (x and y), adds them and shows the result, as simple as possible.
    If anyone has the time to do this i would really appreciate it. I know there are plenty of sites with more complex examples, but i need an extremely simple one. Thanks!
    [is pointless to click here]

  2. #2
    A simple JavaScript calculator
    Benjamindaines's Avatar
    Member Since
    Jan 08, 2005
    Location
    A religiously oppressed state
    Posts
    2,789
    Specs:
    17" MacBook Pro
    Hold on.. typing it up now....

  3. #3
    A simple JavaScript calculator
    Benjamindaines's Avatar
    Member Since
    Jan 08, 2005
    Location
    A religiously oppressed state
    Posts
    2,789
    Specs:
    17" MacBook Pro
    I read your post wrong and did it with PHP code. PHP is much simpler and I suggest just using PHP unless you need javascript specifically for this. Here are my instructions...

    Again sorry for my mistake.
    Attached Files Attached Files

  4. #4
    A simple JavaScript calculator
    mraya's Avatar
    Member Since
    Feb 27, 2005
    Location
    Framingham, MA
    Posts
    940
    Specs:
    MacBook C2D 2.4 2GB
    Thanks a lot for the file, it does look simpler than JavaScript, but i need JavaScript. I need to do some calculations, just simple math for cell culture, basic chemistry and some protocols. JavaScript gives me the flexibility i need plus eventually i may be able to turn it into a widget and/or transfer it to a PDA.
    I'm not familiar with PHP, although it seems simpler i believe it may not give me the compatibility i need later. Anyway, thanks again for your fast answer.
    [is pointless to click here]

  5. #5
    A simple JavaScript calculator
    giulio's Avatar
    Member Since
    Mar 19, 2007
    Location
    NY USA
    Posts
    1,813
    Specs:
    iMac 5.1 | iMac 7.1 | iPod Touch | iPod Nano
    Thumbs up 8 Minutes Later
    Here ya go!
    Attached Files Attached Files
    schweb This has to be one of the best threads ever in MF history...
    Cherokee This gets my vote for most innovative thread on Mac-Forums... ever.

  6. #6
    A simple JavaScript calculator
    mraya's Avatar
    Member Since
    Feb 27, 2005
    Location
    Framingham, MA
    Posts
    940
    Specs:
    MacBook C2D 2.4 2GB
    Thanks a lot giulio!!!
    [is pointless to click here]

  7. #7
    A simple JavaScript calculator
    giulio's Avatar
    Member Since
    Mar 19, 2007
    Location
    NY USA
    Posts
    1,813
    Specs:
    iMac 5.1 | iMac 7.1 | iPod Touch | iPod Nano
    you're welcome

  8. #8
    A simple JavaScript calculator

    Member Since
    Feb 17, 2009
    Posts
    1
    Angry calculator
    hi looking for a simple calculator with an item name box: and amount
    to simple add another item named box: and another:
    like this ...{two cold pies} 1.23 + {three cold pies}1.26 + {two sandwiches} 1.10 = total the one that is posted in a zip file nearly does it. can anybody help????
    Equinox

  9. #9
    A simple JavaScript calculator

    Member Since
    Jan 30, 2009
    Posts
    48
    great place for JS scripts click here or here or even here

  10. #10
    A simple JavaScript calculator

    Member Since
    Feb 23, 2009
    Posts
    1
    calculator
    Hello! I am brand new to the mac forum, and hoping someone out there can write me some html coding for our website. I would need something very similary to the one on Color Copies at Cheap Discount Prices, Digital Color Copying and Printing, Booklets, Binding ... is there anyone that can help me out. There isn't anyone I know of in Wyoming that can do this, and its frustrating the heck out of this old business owner.... Amanda

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. calculator for 10.6.8?
    By camel77 in forum OS X - Apps and Games
    Replies: 4
    Last Post: 05-03-2012, 03:58 PM
  2. Simple, Simple question (?) from a real beginner
    By JamesTaylor in forum iOS and Apps
    Replies: 0
    Last Post: 05-15-2011, 08:58 AM
  3. Calculator
    By shahvikram123 in forum OS X - Operating System
    Replies: 1
    Last Post: 05-30-2007, 11:17 AM
  4. TI 89 Calculator
    By boarderjosh10 in forum Other Hardware and Peripherals
    Replies: 0
    Last Post: 12-02-2005, 06:45 PM
  5. OS X calculator????
    By huffstar in forum Running Windows (or anything else) on your Mac
    Replies: 3
    Last Post: 05-06-2004, 05:03 PM

Posting Permissions

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