becks
Member since Dec 11, 2008
- Profile: /members/1762-becks.htm
- Comments: 2
Recent Blog Comments By becks
-
Ask Ben: Javascript String Replace Method
Posted on Aug 28, 2007 at 11:55 AM
Sorry if my question was vague, I'm using Ajax to send queries to an Oracle database. The problem I was having was that for Oracle strings containing the single quote (') need to have it escaped. So I know typically you'd ensure that the value you send to the database is something like this: "Jane... read more »
-
Ask Ben: Javascript String Replace Method
Posted on Aug 27, 2007 at 4:25 AM
Hi Ben, This was a true lesson in string manipulation for me, so thumbs up on this article. My question is how would I escape single or double quotes with your first example? For example, given the text: "Jane's Defense Weekly" I ended up looping endlessly by trying to replace "'" with "\'"; o... read more »