This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: passing username
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] passing username
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Mon, 26 Mar 2001 17:22:55 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
>Hi Gloria,
Missed this one.
> If you're using MSXML (i.e. doing the
>transformation client-side with IE) then you need to script the
>transformation and use the addParameter() method:
Not necesarily. If Gloria doesn't need it in the transform then
<script language="JavaScript" type="text/javascript">
var querystring = document.location.search;
var bits = querystring.split("&");
var hash = new Array();
for (var i=0; i < bits.length; i++){
var nv = bits[i].split("=");
hash[nv[0]] = nv[1];
}
var username = hash["username"];
something.innerText = "Hello " + username;
</script>
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list