Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
javascript checkbox event handling
Name: nascent (by mboto) Date: June 8, 2003 at 08:11:44 Pacific OS: win98 CPU/Ram: 600/256
Comment:
I am trying to make an easy game in javascript. You have to click 25 checkboxes in the fastest time. When you click on a checkbox it calls a function called start. Everytime i have tried to call this function i have hit a brick wall. I thought this would be pretty straight forward.
The checkboxes are aranged in a front page table. If i use :---" ", i get the error "Object doesn't support this action" if i use :- " ", i get absolutely nothing not even an error. I have alert testing message inside the statt function on the first line so this should be calling if it is being executed, but the script is acting as though there is programmng there. Anyone know how i can avoid this?
Name: nascent (by mboto) Date: June 8, 2003 at 08:14:31 Pacific
Reply:
Sorry the first use should read {input type="checkbox" name="2" value="ON" onClick"start()"} where { = rigght angle bracket etc.. this post removes them
and the second reads {input type="checkbox" name="2" value="ON" onClick("start()")}
Summary: Why not just loop through all the checkboxes and checking them when the check_all box are clicked? Im not much of a programmer myself, Im not even sure how to put checkboxes in an array :) But what ab...
Summary: Can anyone tell me how to write event handling for text field..example, I want to type in abc in the text fiels and stuff related to that should pop up in other text fields associated with it...if thi...
Summary: I need to handle the ListView MouseUp and DoubleClick events but using Visual Studio 2002 and .NET 1.0a it is only possible to handle one event at a time, not both. MouseUp overrides the DoubleClick e...