News:

Wondering if this will always be free?  See why free is better.

Main Menu

JavaScript Help

Started by Senkusha, July 22, 2004, 05:20:10 PM

Previous topic - Next topic

Senkusha

Hi, does anybody know where I can find a good site for JavaScript?

Basically this is my problem:  I have a series of buttons that when clicked will either add or subtract the current balance from a 'total pool'.

Say I have 1000 credits available.  I click on the "decrease" button and now the available credits should read 999.

Thank you!
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Senkusha

I have another problem also that I need help with.

I have found code using ASP and Javascript to populate selections for other <select OPTION>  elements, but I can't translate it for PHP.  Below is an example:

First <select> element will contain:
  North America
  South America
  Asia
  Austrialla (sp??)
  Europe


The second <select> element will have it's options depend on the first:

IF <select1> = North America THEN options will be:
  United States
  Canada
The third <select> will also be based on <select1>:
  English
  French
  Spanish


IF <select1> = Asia THEN option will be:
  China
  Japan
  Russia
The third <select> will also be based on <select1>:
  Japanese
  Chinese
  Russian


Now here is the trick:  All of the options are read from a databse, so I was thinking of reading all the possible values into an array of sorts and then using Javascript to populate the <select> elements.  The problem is that I have no clue how to begin.  Any suggestions?

Thanks!
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Vinoth

Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Senkusha

Thank you very much!  I found everything I needed there included a great message board for additional help.
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Advertisement: