Connecting Tech Pros Worldwide Help | Site Map

Tell when popup has been closed?

  #1  
Old July 23rd, 2005, 11:42 AM
harry
Guest
 
Posts: n/a
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



  #2  
Old July 23rd, 2005, 11:42 AM
Ivo
Guest
 
Posts: n/a

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


  #3  
Old July 23rd, 2005, 02:24 PM
Guest
 
Posts: n/a

re: Tell when popup has been closed?


"harry" <a@abc.com> wrote in message
news:kmOlc.1447$983.13357095@news-text.cableinet.net...[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
> 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[/color]

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.


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hook system mouse down? schneider answers 22 June 27th, 2008 09:13 PM
? about closing this popup form Ellen Manning answers 4 November 12th, 2005 08:19 PM
Hi, stupid popup question Shaun McKinnon answers 38 July 20th, 2005 01:06 PM
De-activating windows using Javascript Maria Bitsku answers 3 July 20th, 2005 11:38 AM