Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Problems with onblur trigger


Message #1 by "Paul Dickinson" <paul.dickinson@n...> on Fri, 26 Oct 2001 11:18:08
In the opener program I have an onUnload hander that checks to see it the
opened window is still open - if it is I close it.
----- Original Message -----
From: "Joe Fawcett" <joefawcett@h...>
To: "javascript" <javascript@p...>
Sent: Friday, October 26, 2001 12:31 PM
Subject: [javascript] RE: Problems with onblur trigger


> If you know you're browser is IE5.5 you can use the createPopup function
to
> take care of this.
>
> Regards
>
> Joe Fawcett
>
>
>
> >From: "Alex Shiell, ITS, EC, SE" <alex.shiell@s...>
> >Reply-To: "javascript" <javascript@p...>
> >To: "javascript" <javascript@p...>
> >Subject: [javascript] RE: Problems with onblur trigger
> >Date: Fri, 26 Oct 2001 11:54:18 +0100
> >
> >I've managed to acheive a modal popup window by putting this into the
main
> >window
> >
> ><BODY ONFOCUS="checkpopup()...>
> >
> >function checkpopup(){
> > try{ oWindow.focus(); }
> > catch(e){}
> >}
> >
> >(where oWindow is a pointer to the window that's created)
> >
> >
> >
> >
> >
> >-----Original Message-----
> >From: Paul Dickinson [mailto:paul.dickinson@n...]
> >Sent: 26 October 2001 12:18
> >To: javascript
> >Subject: [javascript] Problems with onblur trigger
> >
> >
> >I am opening a small information window up using the window.open
statment.
> >I am trying to code the information window so that if the user
> >accidentally clicks off it, it closes itself down (so that it does not
get
> >lost behind other windows).
> >
> >To do this, I am using the onblur trigger in the body of the information
> >window:
> >
> >onblur="window.close()"
> >
> >Unfortunately, if you click anywhere in the information window, the
onblur
> >event is triggered (even though it is the active window).
> >
> >I have put the statement: document.write('blur') in place of the
> >window.close() to double check that the onblur is triggering. The
> >word 'blur' does appear in the information window. I have noticed at this
> >point that if I hit the back button (redisplay the original info) the
> >onblur does not trigger. Having said that, if you click around a few
times
> >anywhere in the information window, the onblur will eventually trigger
> >(wierd).
> >
> >I am testing on IE 5.5. Can anybody shed any light on the subject.
> >
> >thanks
> >Paul.
> >
>
>
>



  Return to Index