I am using javascript (using jquery) to pass a # symbol as a GET parameter via AJAX call.
The problem right now is that the # symbol is breaking up my querystring.
Any help appreciated. Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to replace it with
%23in the string. However, instead of doing this directly you should use Javascript functionencodeURIComponentto encode characters in the URL.Alternatively, if you are using jQuery.ajax you can automatically encode parameters by passing them in via the
dataoption.