Open Tech Support
Open 

Tech Support Community
Back to HomeCommunityReviewsGuidesDownloadsLinkageMarketplaceContact Us

 »  Forum Navigation

Home
Post a Question
About Our Site
Support Our Site

What is this site?
Who are we?

Tolitz.Com - The Cynic Eye of the Third World Guy

Enhanced with Snapshots

 

 »  Advertisement


Go Back   Open Tech Support Community > SUPPORT FORUMS > Internet




Reply

 

LinkBack Thread Tools
Old 04-23-2007, 04:54 PM   #1 (permalink)

Learning From My Mistakes
 
newman55's Avatar
 
Join Date: Sep 2003
Location: Miami, FL
Posts: 623


assigning function to radio in javascript

I am having trouble assigning a math function to a radio button.

This is what i want:

sum function= theSum()
diff function= theDiff()

*= radio button

-------------------------------------------------------------------

1st value:____
2nd value:_____

*add
*subtract

button:calculate

total value_______



basically I want to be able to assign the add function to the add radio and the subtracting function to the subtract radio. The purpose of this is to allow the user to choose either add or subract and then hit the calculate button to get a value from the two integer values.

The problem is how to assign each function to a different radio. I know a conditional is involved in this process, but I don't know how to do it. And the website tutorials don't help at all with this problem. Don't bother giving me a link to a website that might help since chances are they're not of help at all. I'm sure at least a moderator or canis lupis would be able to help me on this one given they are advanced in javascript.

-----------------------------
Lets Go Heat!!!

http://www.imagehosting.com/out.php/i350133_viper2.jpg
newman55 is offline   Reply With Quote
Sponsored Links
Old 04-24-2007, 11:58 AM   #2 (permalink)

The 2nd Runner
 
AltronHGX's Avatar
 
Join Date: Jul 2001
Location: Pennnnnnnnnnsylvania
Posts: 2,530


Re: assigning function to radio in javascript

hey how's that problem comin along, dogg, I just wanted to add my two cents and say the best way to do what you're describing is

-snip-

edit: oops, you were banned

-----------------------------
Zone of the Enders: The 2nd Runner
ADA: I am picking up four enemies on radar.
Dingo: They're just a bunch of babby cats, ignore them.
Ken: Dingo, stop fooling around!
AltronHGX is offline   Reply With Quote
Old 04-24-2007, 01:35 PM   #3 (permalink)

I Live in OTS
 
FadedMaster's Avatar
 
Join Date: Aug 2003
Location: Wisconsin
Posts: 1,716


Re: assigning function to radio in javascript

Quote:
Originally Posted by AltronHGX
hey how's that problem comin along, dogg, I just wanted to add my two cents and say the best way to do what you're describing is

-snip-

edit: oops, you were banned

Hahaha. :-D

-----------------------------
Desktop: Windows 7 Ultimate x64
CoolerMaster Centurion 534
Asus P5B Deluxe (w/ WiFi)
Intel Core 2 Duo E6600
4GB Corsair XMS2 PC2 6400
300GB 10000 RPM VeolciRaptor
250GB 7200 RPM SATA Maxtor
2 x 1TB WD MyBooks
BFG GeForce 8800 GT OC 512MB
630w Corsair PSU

Laptop: HP dv6885se
FadedMaster is offline   Reply With Quote
Reply

Bookmarks

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
VT6421L SATA PCI Card FadedMaster Software 3 06-05-2006 06:43 PM
javascript problem with XP SP2 mbrazil Software 3 12-23-2004 11:14 PM
Internet Radio Daniel Software 1 06-16-2003 10:24 AM
FCC Approves Digital Radio TotalRecall General News 0 10-10-2002 05:18 PM
Javascript arrays Big_Din_KR Internet 3 01-08-2002 02:09 PM







Powered by vBulletin® Version 3.8.2. Copyright © 2000-2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
Copyright 2000-2008 Open Tech Support.  All Rights Reserved.  Site Design and Development by Tolitz Rosel.