On Feb 28, 2007, at 11:33 AM, Gary Larsen wrote:
Hi Steve,
I don't believe that this has anything to do with how cocoon
serializes or serves the output -- this is a browser UI
issue. I don't think you want a 'target=' request parameter.
You want a 'target=' attribute on the link to the page, so
that the browser is directed to handle it in a new window.
Cocoon (or any server) doesn't do anything differently to
generate or serve the page. ( Or am I misunderstanding the
question ? )
(Yes I was describing this wrong)
I guess the problem is the page is being generated from a form.
On the form the user selects various options prior to running an
XQuery
against eXist. One of the options is output format - html, xml,
csv, excel.
I also have a 'html print view' format which displays the results
without
any application links. I would like this option to display the
results in a
new window.
Hope I'm making sense,
Gary
Yes.
If they were to click on a link, that link would have the target
attribute:
<a href="..." target="_blank" >Print</a>
<form> can also have a target attribute along with it's action.
But if I understand you, you want this to be a variable according to
another choice in the form.
I'm guessing you'll need to do this with client javascript, but I don't
know if there's something in cocoon forms or any javascript libraries
to make it easier.
[But maybe this has clarified the question for someone who can advise
further.]
-- Steve Majewski
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]