Linked Questions

0 votes
4 answers
8k views

Alright and my query is, How do I escape quotes in Javascript? I'm trying to alert the message with my code below. I know it won't work because it contains string in double quotes within the onClick ...
Jenson M John's user avatar
1 vote
2 answers
3k views

this should be simple but I can't figure it out. I want to let user edit a value. To do so, upon click, the value changes into a textbox. However, if the user puts a quote mark in the user input ...
user1904273's user avatar
  • 4,774
0 votes
2 answers
240 views

I have some HTML and when a function is called, I want to change to text in a div that uses span. The idea is to be a sort of customized alert. I'm trying to use .innerHTML, but what I want to ...
Stacey's user avatar
  • 73
0 votes
1 answer
116 views

I have asked this question before and it's really a simple question but I am still waiting for an answer. I want string containing "'" single quote. I know I can use double single quote to evade ...
user786's user avatar
  • 4,440
-2 votes
1 answer
58 views

My string is like this sakjgbsd aksdg's ad asidg's iasudgbsb but when i print the string in function it prints only sakjgbsd aksdg the part after (') is not printing here is how i send data <a ...
user's user avatar
  • 427
0 votes
0 answers
41 views

I have a successfully working input field for a form that looks like this HTML: <li><input type="text" name="1" placeholder="answer #1"></li> and I want to make it so that when a ...
Josh McGee's user avatar
5021 votes
31 answers
1.4m views

What is the difference between a URL, a URI, and a URN?
Sean McMains's user avatar
  • 59.4k
69 votes
13 answers
129k views

Maybe I'm just thinking about this too hard, but I'm having a problem figuring out what escaping to use on a string in some JavaScript code inside a link's onClick handler. Example: <a href="#" ...
rmeador's user avatar
  • 25.8k
10 votes
2 answers
5k views

I'm going to preface this with: "I know this is bad practice and an ugly hack (and I'm sorry) but..." I'm using jQuery TOOL's tooltip widget to display a tooltip on an html element when the user ...
Brad Dwyer's user avatar
  • 6,514
3 votes
3 answers
4k views

Here is a section of code used by CKEditor on my website: CKEDITOR.config.IPS_BBCODE = {"acronym":{"id":"8","title":"Acronym","desc":"Allows you to make an acronym that will display a ...
Nate's user avatar
  • 29.1k
1 vote
4 answers
10k views

I am facing a problem like if I click the button nothing is happening. I looked into the Firebug console. It's throwing an error in the second argument that I have passed. In the second argument the ...
Vignesh's user avatar
  • 1,518
1 vote
2 answers
4k views

I'm trying to add ajax to my comment form submission and I've run into an error when I'm trying to render a partial and I don't know how to solve it. I have everything set up properly and comments get ...
iamdhunt's user avatar
  • 453
4 votes
2 answers
2k views

I have SP which looks at Info schema columns table and converts lower case columns to uppercase. Not able to wrap double codes around object. ALTER TABLE SCHEMA_S.TBLNAME RENAME COLUMN ColName to ...
user1810575's user avatar
2 votes
2 answers
3k views

I have some js that adds an input field for a user: var user = "O'Conner, John" b.innerHTML += "<input type='hidden' value='" + user + "'>"; When its inserted ...
deeej's user avatar
  • 397
0 votes
3 answers
2k views

I have jsp code as: onclick="showURL('${result.url}')" ${result.url} is dynamic value. When an apostrophe comes in the URL I get the error. I have tried all the methods like escape, encodeURI, ...
Anshu Kunal's user avatar

15 30 50 per page