You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dennis Sinelnikov <de...@augustschell.com> on 2006/12/30 18:08:38 UTC
browser handling of &
Hey guys,
I hope this is an easy fix that someone already stumbled upon already...
I keep getting & appeared in the browser address bar, instead of &
html code:
<input type="button" value="Do Something" onClick="serviceLink()">
<script jwcid="@Any" type="text/javascript">
function serviceLink() {
window.location='<span jwcid="@Insert" value="ognl:serviceURL"/>';
}
</script>
java code:
public String getServiceURL()
{
ILink link = this.getSomeEngineService().getLink(false, new
String[]{"someparam1"});
return link.getAbsoluteURL();
}
I'm confused on why isn't the browser converting & => & ?
-Dennis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: browser handling of &
Posted by Dennis Sinelnikov <de...@augustschell.com>.
doh! Jesse, you rock!
Jesse Kuhnert wrote:
> window.location='<span jwcid="@Insert" value="ognl:serviceURL"
> raw="true" />';
>
> On 12/30/06, Dennis Sinelnikov <de...@augustschell.com> wrote:
>> Hey guys,
>>
>> I hope this is an easy fix that someone already stumbled upon already...
>>
>> I keep getting & appeared in the browser address bar, instead of &
>>
>> html code:
>> <input type="button" value="Do Something" onClick="serviceLink()">
>> <script jwcid="@Any" type="text/javascript">
>> function serviceLink() {
>> window.location='<span jwcid="@Insert"
>> value="ognl:serviceURL"/>';
>> }
>> </script>
>>
>> java code:
>> public String getServiceURL()
>> {
>> ILink link = this.getSomeEngineService().getLink(false, new
>> String[]{"someparam1"});
>> return link.getAbsoluteURL();
>> }
>>
>> I'm confused on why isn't the browser converting & => & ?
>>
>> -Dennis
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: browser handling of &
Posted by Jesse Kuhnert <jk...@gmail.com>.
window.location='<span jwcid="@Insert" value="ognl:serviceURL" raw="true" />';
On 12/30/06, Dennis Sinelnikov <de...@augustschell.com> wrote:
> Hey guys,
>
> I hope this is an easy fix that someone already stumbled upon already...
>
> I keep getting & appeared in the browser address bar, instead of &
>
> html code:
> <input type="button" value="Do Something" onClick="serviceLink()">
> <script jwcid="@Any" type="text/javascript">
> function serviceLink() {
> window.location='<span jwcid="@Insert" value="ognl:serviceURL"/>';
> }
> </script>
>
> java code:
> public String getServiceURL()
> {
> ILink link = this.getSomeEngineService().getLink(false, new
> String[]{"someparam1"});
> return link.getAbsoluteURL();
> }
>
> I'm confused on why isn't the browser converting & => & ?
>
> -Dennis
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org