try:
 encodeURI("Maintain.DealerAka.csp?DEALERID=" + DealerID + "&DealerName=" +
DealerName);

in your javascript.

"kevin furze" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> within a piece of javascript code inside a csp page I write the
> following
>
> function CallMaintainAka() {
> var DealerID=document.form.sys_Id.value;
> var DealerName=document.form.Name.value;
> document.location.href="Maintain.DealerAka.csp?DEALERID=" + DealerID +
> "&DealerName=" + DealerName;
> }
>
> where DealerID=1
> and     DealerName="G & T-WOKINGHAM"
>
> when the Maintain.DealerAka is opened up, the URL is translated as:
>
> Maintain.DealerAka.csp?DEALERID=2&DealerName=G%20&%20T-WOKINGHAM
>
> and when you look closely, the " " (second character of DealerName) is
> correctly excaped to "%20" but the third character ("&") is NOT
> escaped, - its being passed in as "&" the fourth
>
> anyone got any answers to this one. - it seems strange that the " "
> gets translated to "%20" but the "&" is ignored
>
> within the Maintain.DealerAka.csp I have tried to
> #(..EscapeHTML(%request.Data("DealerName",1)))#<br>
> #(..UnescapeHTML(%request.Data("DealerName",1)))#
>
> but in each case, it gets as far as the "G " and ignores everything
> after the "&"
>
> kev
>



Reply via email to