Firing events on a parent IE window from a child IE window 
Author Message
 Firing events on a parent IE window from a child IE window

I have a page containing a text box called 'basehidden'.
This textbox contains simple code which displays a msgbox upon certain
events, for example :

onblur="alert('blur')
onchange="alert('change')

These events work fine when changing the textbox values manually.

However, i would like these events to fire when i change the contents of the
'basehidden' textbox from a popup window, using the following code:

    opener.document.getElementById('basehidden').value = 'Y';

This correctly changes the value in the textbox, but does not trigger any
events.

Does anybody know how i can fire an event on the parent window from the
popup window ????



Tue, 21 Oct 2003 00:03:35 GMT  
 Firing events on a parent IE window from a child IE window
The child window has nothing to do with your problem. The fact is that
the onchange event will not fire when the value of a text box is changed
via script, and the onblur event will not fire unless the focus is
either removed from from the text box or its blur method is called. If
you have IE 5.5 or greater you can fire any event using the fireEvent
method.


|
| I have a page containing a text box called 'basehidden'.
| This textbox contains simple code which displays a msgbox upon certain
| events, for example :
|
| onblur="alert('blur')
| onchange="alert('change')
|
| These events work fine when changing the textbox values manually.
|
| However, i would like these events to fire when i change the contents
of the
| 'basehidden' textbox from a popup window, using the following code:
|
|     opener.document.getElementById('basehidden').value = 'Y';
|
| This correctly changes the value in the textbox, but does not trigger
any
| events.
|
| Does anybody know how i can fire an event on the parent window from
the
| popup window ????
|
|
|



Tue, 21 Oct 2003 02:07:06 GMT  
 Firing events on a parent IE window from a child IE window

Thank you.

What object is the fireEvent method owned by ?

Document ? Window ? or individual elements ?

Many thanks.


Quote:
>The child window has nothing to do with your problem. The fact is that
>the onchange event will not fire when the value of a text box is changed
>via script, and the onblur event will not fire unless the focus is
>either removed from from the text box or its blur method is called. If
>you have IE 5.5 or greater you can fire any event using the fireEvent
>method.



>|
>| I have a page containing a text box called 'basehidden'.
>| This textbox contains simple code which displays a msgbox upon certain
>| events, for example :
>|
>| onblur="alert('blur')
>| onchange="alert('change')
>|
>| These events work fine when changing the textbox values manually.
>|
>| However, i would like these events to fire when i change the contents
>of the
>| 'basehidden' textbox from a popup window, using the following code:
>|
>|     opener.document.getElementById('basehidden').value = 'Y';
>|
>| This correctly changes the value in the textbox, but does not trigger
>any
>| events.
>|
>| Does anybody know how i can fire an event on the parent window from
>the
>| popup window ????
>|
>|
>|



Tue, 21 Oct 2003 18:20:56 GMT  
 Firing events on a parent IE window from a child IE window

http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/fir...

|
| Thank you.
|
| What object is the fireEvent method owned by ?
|
| Document ? Window ? or individual elements ?
|
| Many thanks.
|
|


| >The child window has nothing to do with your problem. The fact is that
| >the onchange event will not fire when the value of a text box is changed
| >via script, and the onblur event will not fire unless the focus is
| >either removed from from the text box or its blur method is called. If
| >you have IE 5.5 or greater you can fire any event using the fireEvent
| >method.
| >


| >|
| >| I have a page containing a text box called 'basehidden'.
| >| This textbox contains simple code which displays a msgbox upon certain
| >| events, for example :
| >|
| >| onblur="alert('blur')
| >| onchange="alert('change')
| >|
| >| These events work fine when changing the textbox values manually.
| >|
| >| However, i would like these events to fire when i change the contents
| >of the
| >| 'basehidden' textbox from a popup window, using the following code:
| >|
| >|     opener.document.getElementById('basehidden').value = 'Y';
| >|
| >| This correctly changes the value in the textbox, but does not trigger
| >any
| >| events.
| >|
| >| Does anybody know how i can fire an event on the parent window from
| >the
| >| popup window ????
| >|
| >|
| >|
| >
| >
|
|



Tue, 21 Oct 2003 20:12:01 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Comunicating between a window and a child window of IE

2. Refresh parent window from child window

3. Child window refreshing parent window

4. Child Window can't talk to parent window -- or vice versa

5. help, I can't create an array from child window in parent window

6. Refreshing parent window from child window

7. Updating parent window and closing child window

8. Updating parent window and closing child window

9. question about new window and parent window event exchange

10. Getting a Child window to Refresh its Parent when its closed

11. parent/child windows

12. Pass values from child window to parent (Help)

 

 
Powered by phpBB® Forum Software