Thomas Chang a écrit :
> impossible? Then how can I catch the window close event in my (xhtml)
> page? What I realy want is: I click a commandLink to open a new page.
> If one close this new page, I will do something. So I want to catch
> this event in the new opened page.
>  
> Thanks
>  
> Thomas
Several note.
1) removing of toolbars and menu is not always appreciated by user. It's
like removing the right click ability.
2) Doing actions during window close event is subject to high jeopardy.
What happen if user just browse to another document? You get no close
event as window still opened. What to do if user turn off computer? What
to do if browser crash? What to do if parent frame was closed? What to
do if user turned off javascript?

If you really need a 'popup' the can not be closed without your
javascript knowing, do it the xhtml way, put a css driven internal frame
on top of the current page. It's not that difficult and is far easier 
to manage in the end (there is no close button or any decoration around
an iframe).
>
>
> */Volker Weber <[EMAIL PROTECTED]>/* schrieb:
>
>     Hi Tomas,
>
>     i don't think the supression of close button is possible, but for the
>     rest maybe this helps:
>
>     http://tinyurl.com/22k5gr
>
>     Regards,
>     Volker
>
>     2007/2/15, Thomas Chang :
>     > Hi,
>     >
>     > Could you write it a little bit in detail? :) Or maybe you have
>     an example?
>     >
>     > Thanks
>     >
>     > Thomas
>     >
>     >
>     > "Wabner, Thomas (EXT)" schrieb:
>     >
>     >
>     >
>     > Hi,
>     >
>     > you have to use a java script function like openWindow('url',
>     'windoname',
>     > 'parameters like no toolbar') in your action in the onclick
>     parameter for
>     > the commandlink tag.
>     >
>     > - Thomas Wabner
>     >
>     >
>     > ________________________________
>     >
>     > From: Thomas Chang [mailto:[EMAIL PROTECTED]
>     > Sent: Donnerstag, 15. Februar 2007 17:47
>     > To: MyFaces Discussion
>     > Subject: How to open a new page which has no close button and no
>     tool bar?
>     >
>     >
>     > Hi all,
>     >
>     >
>     >
>     > My code look as follow:
>     >
>     >
>     >
>     >
>     > value="Open New Browser" target="readMessageWindow">
>     >
>     >
>     >
>     >
>     > I wonder how canI set properties so that the new page
>     "readMessageWindow"
>     > has no tool bar such as forwart and backwort and has no close
>     button?
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     > ________________________________
>     >
>     > Was ist Glück? Schlafen Fische überhaupt? Die Antworten gibt's
>     auf Yahoo!
>     > Clever.
>     >
>     >
>     > ________________________________
>     > Yahoo! 360° – Bloggen und Leute treffen. Erstellen Sie jetzt
>     Ihre eigene
>     > Seite – kostenlos!.
>     >
>     >
>
>
> ------------------------------------------------------------------------
> Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und
> viel mehr bietet das neue Yahoo! Mail
> <http://de.rd.yahoo.com/evt=40589/*http://de.docs.yahoo.com/ymail/landing.html%20>.


Reply via email to