Notices

Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Session Data in Javascript?

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 09-17-11, 04:17 PM Thread Starter   #1
luclanham
New Member



Join Date: Sep 2011

 
Session Data in Javascript?


I am trying to make an application that asks the user to click through several tiers of <input type="button" /> options.

I need a way to record which buttons get click so I can run different js functions based on what the user clicked.

For example:
Tier 1 [A, B, C]
Tier 2 [D, E, F]
Tier 3 [G, H, I]

How would I record whether someone click A, F, and H vs B, D, and G? And then run a unique script based on whatever buttons were recorded?

Thanks,
Ryan
luclanham is offline   QUOTE Thanks
Old 09-18-11, 12:30 AM   #2
petteyg359

 
petteyg359's Avatar 

Join Date: Jul 2004
Location: University of Southern Mississippi

 
  1. Sounds like homework.
  2. Session is not relevant.
  3. Try divs, CSS visibility, and onClick.

__________________
MSI 890GXM-G65 - X6 1055T - 16GiB 10700 - 5850 1GiB - 7 Pro x64 / Gentoo amd64 - HX520
Dell XPS 15 L502x - i7 2760QM - 16GiB 12800 - GT 540M 2GiB - 7 Pro x64 / Gentoo amd64 - Agility 4 512GB

[GB ≠ GiB] [MB ≠ MiB] [kB ≠ kiB] [1000 ≠ 1024] [Giga ≠ gram] [Mega ≠ milli] [Kelvin ≠ kilo] [Byte ≠ bit]
"Apparently, Plaintiff believes that he could sue an egg company for fraud for labeling a carton of 12 eggs a “dozen,” because some bakers would view a “dozen” as including 13 items." - Western Digital 2006
petteyg359 is offline Folding Profile SETI Profile Heatware Profile   QUOTE Thanks
Old 09-19-11, 11:52 AM   #3
Quigsby
Member

 
Quigsby's Avatar 

Join Date: Feb 2004
Location: Fargo, ND

 
It's sort of funny, because I pretty much wrote a similar thing for the OP in his/her other thread. If you actually look at the JavaScript I wrote it's very similar to what you're asking for.

__________________
Quigsby
Rig 1: Gigabyte GA-P35-DS3L / Intel E8400 w/ Rosewill cooler / Antec 900 / 2GBx2 OCZ SLI PC800 / EVGA 9600GT / Cooler Master 750W
Rig 2: abit IP35-E / Intel E8500 w/ HDT-S1383 / Chenming case / 2GBx2 G.Skill 1066 / 60GB OCZ Agility + WD640 / EVGA 8800GS / Fortron 500W Blue Storm
Heatware
Quigsby is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 03:27 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?