| re: Tell when popup has been closed?
"harry" <a@abc.com> wrote[color=blue]
> I have a button that pops up a calender popup window. One of the arguments
> to the openCalendar() is the name of the element to insert the selected[/color]
date[color=blue]
> into i.e a readonly text box - this works fine!
>
> What I want to do is to detect when a value is inserted in to this box[/color]
from[color=blue]
> the popup so I can make visible a "save" button - trouble is though the
> onfocus() & onchanged events are not fired when it's value changes.[/color]
If I understand correctly, the value is changed by a javascript function.
Perhaps you could make this function also show the "Save" button.
[color=blue]
> Is there anyway to get some sort of event fired when a popup closes so I[/color]
can[color=blue]
> test if the text box has changed? - or more likely am I overlooking
> something really obvious?[/color]
Perhaps some "onunload" event handling in the popup?
HTH
Ivo |