I’m quite puzzled by this one, getting this error from firefox.
escape is not a function

Looking at the W3C page, it says it is supported as I thought.
I tried escapeURI instead and this produced the same error.
Any suggestions ?
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.
There is an
escapefunction in DOM level 1 so your code should work. The most likely explanation for the problem is that you have either overwritten it or declared a newescapevariable in a local scope. If the latter, then you should be able to get access to it viawindow.escape.You shouldn’t be using this function anyway; it has been deprecated because it doesn’t handle non-ASCII characters very well. Use
encodeURIComponentinstead.