Subject: Re: [xsl] 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] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL AddParameter, Bret | Thread | RE: Re: [xsl] Re: What is the futur, cknell |
Re: [xsl] Re: What is the future of, Kurt Cagle | Date | Re: [xsl] Re: What is the future of, David Tolpin |
Month |