[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL AddParameter

Subject: Re: XSL AddParameter
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Sat, 28 Feb 2004 08:39:56 -0000
msxml3.dll 0x80070057
----- 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) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.