wila
15-Feb-2005, 05:27 PM
Mk,
Mk wrote:
> Hi All,
> move (sUrl + '/XMLUpdate.asp?ID=U&CutOffDate=' + sCutoffDate +",&ShopNo=" +
> sShopNo) to sFilePath
You have to URLencode those links. You could start by replacing the "&"
symbols with the entity "&".
So the link becomes:
move (sUrl + '/XMLUpdate.asp?ID=U&CutOffDate=' + sCutoffDate
+",&ShopNo=" + sShopNo) to sFilePath
<Quote W3C Validator service>
Entity references start with an ampersand (&) and end with a semicolon
(;). If you want to use a literal ampersand in your document you must
encode it as "&" (even inside URLs!). Be careful to end entity
references with a semicolon or your entity reference may get interpreted
in connection with the following text. Also keep in mind that named
entity references are case-sensitive; &Aelig; and æ are different
characters.
<End-quote W3C Validator service>
See also:
http://www.htmlhelp.com/tools/validator/problems.html#amp
--
Wil
>
> If I try to pass this query string without the comma before the &ShopNo I
> get some bizzare behaviour. Some dates always get passed and some dates
> never get passed.
>
> if I send it with the comma embedded everything gets passed ok, but I get a
> comma after the date
> in the passed function.
>
> It's easy enough to workround but I would be interested to know what the
> correct method is.
>
> Regards
> Mk
>
>
Mk wrote:
> Hi All,
> move (sUrl + '/XMLUpdate.asp?ID=U&CutOffDate=' + sCutoffDate +",&ShopNo=" +
> sShopNo) to sFilePath
You have to URLencode those links. You could start by replacing the "&"
symbols with the entity "&".
So the link becomes:
move (sUrl + '/XMLUpdate.asp?ID=U&CutOffDate=' + sCutoffDate
+",&ShopNo=" + sShopNo) to sFilePath
<Quote W3C Validator service>
Entity references start with an ampersand (&) and end with a semicolon
(;). If you want to use a literal ampersand in your document you must
encode it as "&" (even inside URLs!). Be careful to end entity
references with a semicolon or your entity reference may get interpreted
in connection with the following text. Also keep in mind that named
entity references are case-sensitive; &Aelig; and æ are different
characters.
<End-quote W3C Validator service>
See also:
http://www.htmlhelp.com/tools/validator/problems.html#amp
--
Wil
>
> If I try to pass this query string without the comma before the &ShopNo I
> get some bizzare behaviour. Some dates always get passed and some dates
> never get passed.
>
> if I send it with the comma embedded everything gets passed ok, but I get a
> comma after the date
> in the passed function.
>
> It's easy enough to workround but I would be interested to know what the
> correct method is.
>
> Regards
> Mk
>
>