Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I need to call a javascript function and pass a long url in that. which gives unescaped error because of some special characters. i can't use escape characters because the url is picked dynamically and passed to the function. How can i do this?

share|improve this question
3  
Please post your code. – marteljn May 18 '12 at 23:20
1  
And for the love of God work on your accept rate. – Jivings May 18 '12 at 23:24
add comment (requires an account with 50 reputation)

1 Answer

up vote 0 down vote accepted

See this thread. It shouldn't doesn't matter if the URL is generated in runtime. Can you call a function to encode it before passing it to your other function?

share|improve this answer
add comment (requires an account with 50 reputation)

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.