RE: [xsl] passing username

Subject: RE: [xsl] passing username
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Mon, 26 Mar 2001 17:22:55 +0100
>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


Current Thread
  • [xsl] passing username
    • g p - Sat, 17 Mar 2001 09:40:42 -0800 (PST)
      • Goetz Bock - Sat, 17 Mar 2001 19:00:53 +0100
      • Jeni Tennison - Mon, 26 Mar 2001 15:58:56 +0100
        • Chris Bayes - Mon, 26 Mar 2001 17:22:55 +0100 <=
      • <Possible follow-ups>
      • g p - Wed, 28 Mar 2001 09:30:59 -0800 (PST)