Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: onchange event


Message #1 by "Gadigi, Suresh" <GadigiS@n...> on Fri, 14 Dec 2001 14:54:08 -0500
Hi Suresh,

You could get round it by attaching your function call etc. to the onblur
event, then when changing the value programatically do something like...

myTextBox.focus();
mxTextBox.value="Some Value";
myTextBox.blur();

To fire the onblur() event.
However you'd need to store a copy of the textbox value to check whether it
had changed :(

Chris

----- Original Message -----
From: "Gadigi, Suresh" <GadigiS@n...>
To: "javascript" <javascript@p...>
Sent: Friday, December 14, 2001 7:54 PM
Subject: [javascript] onchange event


> Hi All,
>
> Does the onchange event fires for text box when the value of the text is
> changed programmatically?? i.e.. if the new value is assigned using the
> .value property.
> it fires when the user changes the value by typing..
>
> any idea??
>
>
> Thanks,
> Suresh
>
>
>
>
> "The information in this email, and in any attachments,
> may contain confidential information and is intended
> solely for the attention and use of the named addressee(s).
> It must not be disclosed to any person without authorization.
> If you are not the intended recipient, or a person responsible for
> delivering it to the intended recipient, you are not authorized
> to, and must not, disclose, copy, distribute, or retain this
> message or any part of it."
>
$subst('Email.Unsub').


  Return to Index