In my application, When hyperlink clicked by the end user, The javascript function will get executed. and it generates request. But with parameters, the url is generating with space between parameters.
How to trim the space in the url?
Any Idea?
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.
A URL must not contain a literal space. You should encode the url using built in javascript function encodeURI.
Or Better use encodeURIComponent as you want to encode a URL parameter.
Hope this helps.