Tell when popup has been closed?

H

harry

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 date
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 from
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.

Is there anyway to get some sort of event fired when a popup closes so I can
test if the text box has changed? - or more likely am I overlooking
something really obvious?

many thanks

harry
 
I

Ivo

harry said:
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 date
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 from
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.

If I understand correctly, the value is changed by a javascript function.
Perhaps you could make this function also show the "Save" button.
Is there anyway to get some sort of event fired when a popup closes so I can
test if the text box has changed? - or more likely am I overlooking
something really obvious?

Perhaps some "onunload" event handling in the popup?

HTH
Ivo
 
G

Guest

harry said:
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
date
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
from
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.

Is there anyway to get some sort of event fired when a popup closes so I
can
test if the text box has changed? - or more likely am I overlooking
something really obvious?

many thanks

harry

why not just write a timer that checks to see if the box changes, have it
trap the error so that it knows the popup has been closed and shut off the
timer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top