You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Volker Schneider <vo...@danet.de> on 2002/05/03 16:30:51 UTC

How to open new windows and return control to the opener

Dear colleagues,

does anybody know how to open a new cocoon page in a new window (I can use
JavaScript window.open) and if the opened window has submitted I want to
make a request to the opener window so that their values can be updated.

Every time after opening the window, cocoon returns a dispatcher error. It
seems like a sitemap has not be found. What is the best way  to do this with
cocoon?

Thank you, best regards
- Volker -


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to open new windows and return control to the opener

Posted by Luca Morandini <lu...@tin.it>.
Volker,

as far as I understood your problem, it has has nothing to do with Cocoon.

Anyway, look at the window.opener property of the "child" window, it lets
you set data inside the "mother" window's forms.

Best regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Volker Schneider [mailto:volker.schneider@danet.de]
> Sent: Friday, May 03, 2002 4:31 PM
> To: cocoon-users@xml.apache.org
> Subject: How to open new windows and return control to the opener
>
>
> Dear colleagues,
>
> does anybody know how to open a new cocoon page in a new window (I can use
> JavaScript window.open) and if the opened window has submitted I want to
> make a request to the opener window so that their values can be updated.
>
> Every time after opening the window, cocoon returns a dispatcher error. It
> seems like a sitemap has not be found. What is the best way  to
> do this with
> cocoon?
>
> Thank you, best regards
> - Volker -
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: How to open new windows and return control to the opener

Posted by Bert Van Kets <be...@vankets.com>.
Your question is not very clear.
I assume you want to open a new window and keep using the same window when 
data in the first window is changed and submitted again.
If you add the target attribute in the form tag using a name instead of 
"_blank", a new window will open.  ex. use <form target="newWindow" 
method="post" action="newURL.html">, then a new window will open named 
"newWindow".  Leave this window open and submit again from the first 
window.  The "newWindow" window will update.

You can access the data in the new window using JavaScript from BOTH 
windows.  Also keep in mind that both windows are in the same session (at 
least in IE).

Regarding your error in the new window, check your sitemap.  Are you sure 
you use the correct URL?  Is your expression in the pipeline correct?

Bert


At 16:30 3/05/2002 +0200, you wrote:
>Dear colleagues,
>
>does anybody know how to open a new cocoon page in a new window (I can use
>JavaScript window.open) and if the opened window has submitted I want to
>make a request to the opener window so that their values can be updated.
>
>Every time after opening the window, cocoon returns a dispatcher error. It
>seems like a sitemap has not be found. What is the best way  to do this with
>cocoon?
>
>Thank you, best regards
>- Volker -
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>