Subject: Re: [xsl] xslt replace special characters From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx> Date: Mon, 11 Nov 2002 13:00:46 -0700 |
function mySubmit() { document.true_url.value = convert(document.url.value); document.myform.action = "real form url here"; document.myform.submit(); // 'true_url' will have the "encoded" url value. } // ends mySubmit(void)
function convert(url) { var re = /&/g; return url.replace(re, "&"); } // ends convert(String)
</script> ... <form name="myform" action="javascript:;" method="post"> <input type="text" name="url" value="" /> <input type="hidden" name="true_url" value="" /> <input type="button" value="Submit" onclick="mySubmit();" /> </form>
Thanks Greg. Right in the UI, we want the user to enter their URL. Their URL will most likely have name/value pairs. Is there an easier way? There is no otherway of filtering '&' before it gets processed in the XSL?
Alice
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xslt replace special char, Alice Fan | Thread | Re: [xsl] xslt replace special char, Noel Golding |
Re: [xsl] xslt replace special char, Alice Fan | Date | RE: [xsl] xslt replace special char, Passin, Tom |
Month |