Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Howto call onchange() via JS NOT via a direct user-action

Reply
Thread Tools

Howto call onchange() via JS NOT via a direct user-action

 
 
F. Da Costa
Guest
Posts: n/a
 
      02-02-2004
Hi,

Trying to call/ mimic an onchange function/ event after a user has clicked
a checkbox.
In response to which a buncch of other ones need to be checked as well.
The caveat is that each of those child-checkboxes need to have an onchange
action take place.
All of these child-boxes *have* got a working onchange eventListener
attached (thx to an old post of Lasse Reichstein Nielsen).

Following a snip that suggests that the inputElement.onchange is void, so
calling onchange is a bit hard.
Any suggestions?

....
inputElement = _row2checkbox[tb.rows[i]["id"]];
inputElement["checked"] = el["checked"];
if (inputElement.onchange) {
inputElement.onchange();
}
....

I guess I could find another way to make it work but that would ivolve some
serious trickery because I also need some other elements which are
incorporated in the onchange at 'attachment time'.

TIA
Fermin DCG
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using variable or using direct method call - Java 4 06-01-2005 04:30 PM
Cisco 7940 to Cisco 7940 direct call Sven Mueller Cisco 0 05-20-2004 05:26 PM
7940 to 7940 direct call Sven Mueller Cisco 0 05-20-2004 05:22 PM
7940 to 7940 direct call Sven Mueller Cisco 0 05-19-2004 09:29 PM
7940 to 7940 direct call Sven Mueller Cisco 0 05-19-2004 09:28 PM



Advertisments