Hi All
I am trying to store a string in a cookie with a space in i.e. "abc 123". When I retrieve the string, the space has gone i.e."abc123". This is the code used to store.
I have an onblur to call this function on text box IdSearch. The alert statment is for test and displays the string correctly.
I read the cookie like this.
And the space has gone!!!
Could it be the mixture of javascript and ASP?
Thanks in advance
Steve
I am trying to store a string in a cookie with a space in i.e. "abc 123". When I retrieve the string, the space has gone i.e."abc123". This is the code used to store.
Code:
<script type="text/javascript">
function BlurName() {
alert("hello" + document.getElementById("IdSearch").value)
document.cookie = "CustName=" + document.getElementById("IdSearch").value;
}
</script>
I read the cookie like this.
Code:
<%
response.write "Search = " & request.cookies("CustName")
%>
Could it be the mixture of javascript and ASP?
Thanks in advance
Steve