[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: XSL AddParameter
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Sat, 28 Feb 2004 08:39:56 -0000
----- Original Message ----- 
From: "Bret" <laker_66@xxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, February 27, 2004 11:18 PM
Subject:  XSL AddParameter


> Hi All,
>          I was trying to pass a parameter to XSL from
> ASP Page using Javascript like the one beolw
>
> XSLProc.addParameter("CITY",Request.Form('CITY'));
>
> I get the following error .
> msxml3.dll (0x80070057) The parameter is incorrect .
>
> But if do send a static hard coded value  it works
> fine something like below .
>
> XSLProc.addParameter("CITY","BOSTON");
>
> Also if i try to pass a number it works fine after i
> use parseInt function in Javascript like the one below
> .
>
Probably because Request.Form("CITY") does not return a string, IIRC it
returns an object that implements IStringList. You can convert to a string
with:
Request.Form("CITY") + ""

OR try
Request.Form("CITY").Item()

-- 
Joe

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • XSL AddParameter
    • Bret - Fri, 27 Feb 2004 18:18:50 -0500 (EST)
      • Joe Fawcett - Sat, 28 Feb 2004 03:40:42 -0500 (EST) <=
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member