I am a newbie to javascript and am trying to debug an issue. A variable has a value with 2 dashes(- and another -) For example Location -- 1. Instead of typing 2 dashes somebody had cut and pasted this value into the database. So it shows as one long dash. Now my page gets a javascript error as the 2 dashes are interpreted as a separate character in itself. I get the error
Error: Object required
Any thoughts? Should I be using any encoding rules?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.