> From: Bert Van Kets [mailto:[EMAIL PROTECTED]] > > There is NO WAY you can open a new window from the server side.
Thanks GOD it is so!!! Otherwise web would be nightmare... > Client side JavaScript (or VBscript in IE for the picky ones) is the only > way to do this. There are different approaches to your problem, but they > all involve some client side coding. >From the start of this thread, nobody sent to RTFM yet, so here it is: http://www.w3.org/TR/html4/ http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm Vadim > Bert > > At 19:09 4/05/2002 +0200, you wrote: > > >Thanks for your reply. I considered <form ... target="blank"> as well before > >I posted this question. However you should know that currently my > >architecture utilizes only one <form> trag to which various user inputs > >(e. g. buttons) > >submit. On serverside I gather the information which action was intended. > >The problem is that there is only one single button within my client view > >that > >would require to open a new browser window. Any others should remain updating > >the same browser window. Therefore I was asking if there is a possibility > >that cocoon could create a new browser window. > > > >As a workaround I'm doing it as follows however in a future release of my > >application I'd like to avoid javascript at all: > > > ><form action="/xxx" method="get"> > > <input name="process" type="hidden"> > > ... > > <input type="submit" > > onclick="document.forms[0].process.value='regular'" > > value=" A regular action that should update current view "/> > > ... > > <input type="submit" onclick="document.forms[0].process.value='new', > >document.forms[0].target='_blank'" > > value="open new browser window! "/> > > ... > ></form> > > > >It seems that there is no way out to use my current design without > >javascript. > > > >Regards, > > > >Harald > > > >At 09:41 3/05/2002 +0200, you wrote: > > >You can achieve this in HTML by setting the target of your form to > > >"_blank" which will post the results to a newly openned window. > > >The javascript solution is better if you want more control over how the > > >newly openned window looks. > > > > > >Andrew > > > > > >On Fri, 2002-05-03 at 09:38, yuryx wrote: > > > > [EMAIL PROTECTED] wrote: > > > > > > > > >Currently my application consists of cocoon-actions that invoke xsp/xsl > > > > >files upon requests. As normal the new output always refreshes the > > > > >client's > > > > >browser view. > > > > >Based on some calculations at the actions I'm required to delegate the > > > > >response not to the current browser window but to a newly opened > > > > >browser window. > > > > >An examle would be a printable view of a web page. Is this possible > > > > >with > > > > >cocoon2? How could I accomplish it? > > > > > > > > > >Thanks for your comments! > > > > > > > > > >Harald > > > > > > > > > try use javascript for open new window, and submit form within it. > > > > Yury. --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>