ampersands as separators in get submissions

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ampersands as separators in get submissions

David McIntyre
I'd like to send some instance data as a submission with method="get".  If the instance is
<xf:instance id="foo" xmlns="">
    <foo>
        <bar>my bar</bar>
        <wibble>a wibble</wibble>
    </foo>
</xf:instance>
then I would like the submission to go to http://www.example.com/query?bar=my+bar&wibble=a+wibble.  However, it is going instead to http://www.example.com/query?bar=my+bar;wibble=a+wibble, with a semicolon instead of an ampersand as the separator between parameters.  While I understand that this is legitimate syntax, I am unable to modify the code at www.example.com/query, which only understands ampersands as separators.  Is there a way to configure Orbeon Forms to use ampersand as a separator instead?
 
Cheers,
 
    Dave Mc
 
 
 
 
 
 
Dave McIntyre   MA, DPhil, GradDipSci
Software Developer
[hidden email]
P: +64 9 638 0600
F: +64 9 638 0699
M: +64 21 212 8087
S: dave.mcintyre


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: ampersands as separators in get submissions

Daniel E. Renfer
separator="&amp;" on the submission element.

hope that helps.

--
Daniel E. Renfer
http://kronkltd.net/

On 6/18/07, David McIntyre <[hidden email]> wrote:
I'd like to send some instance data as a submission with method="get".  If the instance is
<xf:instance id="foo" xmlns="">
    <foo>
        <bar>my bar</bar>
        <wibble>a wibble</wibble>
    </foo>
</xf:instance>
then I would like the submission to go to <a href="http://www.example.com/query?bar=my+bar&amp;wibble=a+wibble" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.example.com/query?bar=my+bar&wibble=a+wibble .  However, it is going instead to <a href="http://www.example.com/query?bar=my+bar;wibble=a+wibble" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.example.com/query?bar=my+bar;wibble=a+wibble , with a semicolon instead of an ampersand as the separator between parameters.  While I understand that this is legitimate syntax, I am unable to modify the code at <a href="http://www.example.com/query" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> www.example.com/query, which only understands ampersands as separators.  Is there a way to configure Orbeon Forms to use ampersand as a separator instead?
 
Cheers,
 
    Dave Mc
 
 
 
 
 
 



Dave McIntyre   MA, DPhil, GradDipSci
Software Developer
[hidden email]
P: +64 9 638 0600
F: +64 9 638 0699
M: +64 21 212 8087
S: dave.mcintyre
<a href="http://www.orionhealth.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> www.orionhealth.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto: [hidden email]?subject=help
ObjectWeb mailing lists service home page: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.objectweb.org/wws" target="_blank"> http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: ampersands as separators in get submissions

David McIntyre
worked like a charm, thanks very much.
 
Dave Mc
 
 
Dave McIntyre   MA, DPhil, GradDipSci
Software Developer
[hidden email]
P: +64 9 638 0600
F: +64 9 638 0699
M: +64 21 212 8087
S: dave.mcintyre


>>> "Daniel E. Renfer" <[hidden email]> 19/06/2007 10:16 >>>
separator="&amp;" on the submission element.

hope that helps.

--
Daniel E. Renfer
http://kronkltd.net/

On 6/18/07, David McIntyre <[hidden email]> wrote:
I'd like to send some instance data as a submission with method="get".  If the instance is
<xf:instance id="foo" xmlns="">
    <foo>
        <bar>my bar</bar>
        <wibble>a wibble</wibble>
    </foo>
</xf:instance>
then I would like the submission to go to <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.example.com/query?bar=my+bar&amp;wibble=a+wibble" target=_blank>http://www.example.com/query?bar=my+bar&wibble=a+wibble .  However, it is going instead to <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.example.com/query?bar=my+bar;wibble=a+wibble" target=_blank>http://www.example.com/query?bar=my+bar;wibble=a+wibble , with a semicolon instead of an ampersand as the separator between parameters.  While I understand that this is legitimate syntax, I am unable to modify the code at <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.example.com/query" target=_blank>www.example.com/query, which only understands ampersands as separators.  Is there a way to configure Orbeon Forms to use ampersand as a separator instead?
 
Cheers,
 
    Dave Mc
 
 
 
 
 
 



Dave McIntyre   MA, DPhil, GradDipSci
Software Developer
[hidden email]
P: +64 9 638 0600
F: +64 9 638 0699
M: +64 21 212 8087
S: dave.mcintyre
<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.orionhealth.com/" target=_blank>www.orionhealth.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto: [hidden email]?subject=help
ObjectWeb mailing lists service home page: <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.objectweb.org/wws" target=_blank>http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: ampersands as separators in get submissions

Erik Bruchez
Administrator
And for the record, I think that ";" is the default parameter separator
in XForms because it looks nicer in XML attributes - you don't have to
escape it into something ugly like &amp;. Some servers are happy with
";", but some are not, so you must use separator="&amp;" in those cases.

-Erik

David McIntyre wrote:

> worked like a charm, thanks very much.
>  
> Dave Mc
>  
>  
>
> **
>
> *Dave McIntyre   *MA, DPhil, GradDipSci
> *Software Developer*
> [hidden email] <mailto:[hidden email]>
> P: +64 9 638 0600
> F: +64 9 638 0699
> M: +64 21 212 8087
> S: dave.mcintyre
> www.orionhealth.com <http://www.orionhealth.com/>
>
>
>
>  >>> "Daniel E. Renfer" <[hidden email]> 19/06/2007 10:16 >>>
> separator="&amp;" on the submission element.
>
> hope that helps.
>
> --
> Daniel E. Renfer
> http://kronkltd.net/
>
> On 6/18/07, *David McIntyre* <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     I'd like to send some instance data as a submission with
>     method="get".  If the instance is
>     <xf:instance id="foo" xmlns="">
>         <foo>
>             <bar>my bar</bar>
>             <wibble>a wibble</wibble>
>         </foo>
>     </xf:instance>
>     then I would like the submission to go to
>     http://www.example.com/query?bar=my+bar&wibble=a+wibble
>     <http://www.example.com/query?bar=my+bar&wibble=a+wibble>.  However,
>     it is going instead to
>     http://www.example.com/query?bar=my+bar;wibble=a+wibble
>     <http://www.example.com/query?bar=my+bar;wibble=a+wibble>, with a
>     semicolon instead of an ampersand as the separator between
>     parameters.  While I understand that this is legitimate syntax, I am
>     unable to modify the code at www.example.com/query
>     <http://www.example.com/query>, which only understands ampersands as
>     separators.  Is there a way to configure Orbeon Forms to use
>     ampersand as a separator instead?
>      
>     Cheers,
>      
>         Dave Mc
>      
>      
>      
>      
>      
>      
>
>
>     * *
>    
>    
>     *Dave McIntyre   *MA, DPhil, GradDipSci
>     *Software Developer*
>     [hidden email] <mailto:[hidden email]>
>     P: +64 9 638 0600
>     F: +64 9 638 0699
>     M: +64 21 212 8087
>     S: dave.mcintyre
>     www.orionhealth.com <http://www.orionhealth.com/>
>
>
>
>     --
>     You receive this message as a subscriber of the
>     [hidden email] <mailto:[hidden email]> mailing list.
>     To unsubscribe: mailto:[hidden email]
>     <mailto:[hidden email]>
>     For general help: mailto: [hidden email]
>     <mailto:[hidden email]>?subject=help
>     ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws