You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2002/06/10 11:54:02 UTC
Form submission - results to a new window? [OT?]
Hi
I appreciate that this is not strictly a Cocoon issue - but thought
there
might be a guru here to help....
I have a form which will be submitted to Cocoon for processing.
>From the XSLT:
<input type="submit" name="@target" value="Submit" />
where @target will obviously correspond to some Cocoon
pipeline match entry eg. "forms/dothis"
The question is - is it possible to force the output to appear
in a new browser window - with <a href>, one could just
use <a href="forms/dothis" target="_blank">
but can the equivalent be done for a form??
Thanks
Derek
---------------------------------------------------------------------
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: Form submission - results to a new window? [OT?]
Posted by Christoph Gaffga <cg...@triplemind.com>.
Better you use this
<from target="_blank" ...>
<!-- Your form here -->
<input type="submit"/>
</form>
an take a look no
http://www.w3.org/TR/html4/interact/forms.html#h-17.3
Yours
Christoph Gaffga
----- Original Message -----
From: "Volker Schneider" <vo...@danet.de>
To: <co...@xml.apache.org>
Sent: Monday, June 10, 2002 12:44 PM
Subject: RE: Form submission - results to a new window? [OT?]
> Hi Derek,
>
> I'm afraid you have to do it with JavaScript:
>
> <a href="javascript:doThis()" target="_blank">Do this</a>
>
> With:
>
> function doThis()
> {
> document.forms[0].action = "forms/dothis";
> document.forms[0].submit();
> }
>
> Best regards
> - Volker -
>
> -----Original Message-----
> From: Derek Hohls [mailto:DHohls@csir.co.za]
> Sent: Montag, 10. Juni 2002 11:54
> To: cocoon-users@xml.apache.org
> Subject: Form submission - results to a new window? [OT?]
>
>
> Hi
>
> I appreciate that this is not strictly a Cocoon issue - but thought
> there
> might be a guru here to help....
>
> I have a form which will be submitted to Cocoon for processing.
>
> >From the XSLT:
>
> <input type="submit" name="@target" value="Submit" />
>
> where @target will obviously correspond to some Cocoon
> pipeline match entry eg. "forms/dothis"
>
> The question is - is it possible to force the output to appear
> in a new browser window - with <a href>, one could just
> use <a href="forms/dothis" target="_blank">
> but can the equivalent be done for a form??
>
> Thanks
> Derek
>
>
>
> ---------------------------------------------------------------------
> 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>
---------------------------------------------------------------------
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: Form submission - results to a new window? [OT?]
Posted by Volker Schneider <vo...@danet.de>.
Hi Derek,
I'm afraid you have to do it with JavaScript:
<a href="javascript:doThis()" target="_blank">Do this</a>
With:
function doThis()
{
document.forms[0].action = "forms/dothis";
document.forms[0].submit();
}
Best regards
- Volker -
-----Original Message-----
From: Derek Hohls [mailto:DHohls@csir.co.za]
Sent: Montag, 10. Juni 2002 11:54
To: cocoon-users@xml.apache.org
Subject: Form submission - results to a new window? [OT?]
Hi
I appreciate that this is not strictly a Cocoon issue - but thought
there
might be a guru here to help....
I have a form which will be submitted to Cocoon for processing.
>>From the XSLT:
<input type="submit" name="@target" value="Submit" />
where @target will obviously correspond to some Cocoon
pipeline match entry eg. "forms/dothis"
The question is - is it possible to force the output to appear
in a new browser window - with <a href>, one could just
use <a href="forms/dothis" target="_blank">
but can the equivalent be done for a form??
Thanks
Derek
---------------------------------------------------------------------
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: Form submission - results to a new window? [OT?]
Posted by Bert Van Kets <be...@vankets.com>.
At 11:54 10/06/2002 +0200, you wrote:
>Hi
>
>I appreciate that this is not strictly a Cocoon issue - but thought
>there
>might be a guru here to help....
>
>I have a form which will be submitted to Cocoon for processing.
>
> From the XSLT:
>
><input type="submit" name="@target" value="Submit" />
>
>where @target will obviously correspond to some Cocoon
>pipeline match entry eg. "forms/dothis"
>
>The question is - is it possible to force the output to appear
>in a new browser window - with <a href>, one could just
>use <a href="forms/dothis" target="_blank">
>but can the equivalent be done for a form??
Yes, a form element has a target attribute. You can either use "_blank" to
open a new window every time, or use a specific name like "results" to send
the result of every submit to the same window. If the window with the name
"results" does not exist yet (first submit) a new window is opened.
watch out! The target attribute is actually implemented to submit to a
frame with a certain name. Make sure, if you are using frames, you don't
use the name of a frame.
More info: http://www.w3.org/TR/html4/interact/forms.html#h-17.3
Bert
>Thanks
>Derek
>
>
>
>---------------------------------------------------------------------
>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>