----- Original Message -----
From: "Bret" <laker_66(_at_)yahoo(_dot_)com>
To: <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Friday, February 27, 2004 11:18 PM
Subject: [xsl] 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