[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Button script



George,

Try this...

<form>
	<input type="checkbox" name="checkbutton">
<p>
	<input type="button" value="check" onclick="form.checkbutton.checked = 
true;">
</form>

It seems to work here.  I have no idea why the other method doesn't work. 
 It seems as if it should, although it should toggle it back and forth 
between checked and unchecked.  Perhaps the click() method is not 
entirely implemented in JS yet.  I have found other things that won't 
work either.

One of the things I have been trying to do is set up 2 popup lists side 
by side where a change in selection in one of the lists causes the entire 
list in the 2nd one to change its contents.  I tried and tried, nothing 
seems to work, then I noticed a small xxx NYI in the docs for select 
objects where they talk about dynamically changing a list.  I suspect 
that means "not yet implemented".

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Kenneth J. Fox
   Rockwell Automation - Allen Bradley
   1201 S. 2nd Street
   Milwaukee WI
   Voice  414.382.3287 FAX 414.382.4718 Page 414.256.9702
   Email: kjfox@mke.ab.com