Adrian Parker wrote:
> I have a popup window that displays a calendar; it's opened by a button that
> relates to a textbox used to enter a date. When the popup is opened, the ID
> and the value of the date textbox is passed as an argument. I can update
> the date control with the newly selected date, but how then can I trigger a
> changed event on the date textbox control from the child calendar window ?
If you are changing the text input's value, you must have a reference
to it. If you want to call its onchange handler, then do it. You are
probablly doing something like:
var inputRef = opener.document.getElementById( someID );
inputRef.value = someNewValue;
// Now call onchange
if ('function' == typeof inputRef.onchange) inputRef.onchange();
--
Fred
|