Connecting Tech Pros Worldwide Help | Site Map

Tell when popup has been closed?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 10:42 AM
harry
Guest
 
Posts: n/a
Default Tell when popup has been closed?

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, 10:42 AM
Ivo
Guest
 
Posts: n/a
Default 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, 01:24 PM
Guest
 
Posts: n/a
Default 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.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.