English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm working on JavaScript, and my assignment is to write a page that when you click on the radio button of a city and click update, it displays the time in the text box. however, its not working - can you help? (i'm on a library computer without admin privledges and without firefox so i can't debug)






San Francisco 

New York 

London 

Tokyo 






I know my xhml is fine (i just cut out the head and title to keep it short), but what is wrong with my javascript? thanks.

2007-03-12 12:39:02 · update #2

2 answers

http://www.dougv.com/blog/2007/03/12/displaying-the-correct-time-for-world-cities-with-ajax-javascript-dom/

2007-03-12 15:37:52 · answer #1 · answered by Anonymous · 0 0

for starters, don't put semi-colons after the arguments when declaring functions. Like,

function cityTime(city_name); {

putting a semi-colon there breaks your function.

2007-03-12 12:54:21 · answer #2 · answered by Les 2 · 0 0

fedest.com, questions and answers