Welcome Guest, Not a member yet? Register   Sign In
javascript confirmation with html character code
#1

[eluser]Jagar[/eluser]
I know this has nothing to do with CI, but I hope somebody knows the answer.

Admins have a list of all the items they have added, and trying to make everything as safe as possible, the only think that is not working is the javascript confirmation, such as the following:

Code:
return confirm('Are you sure you wish to delete Don't be sad?');"

That is attached to a link when the user clicks on it, they will get that confirmation, but in this case that character ' is the single quote, so it shouldn't be a problem with javascript since it's safe. But it is not, when items such as that with single quote, gets clicked, the user does not get a confirmation, but it gets deleted right away,

Is there any way around this?

Thanks


Messages In This Thread
javascript confirmation with html character code - by El Forum - 05-26-2009, 07:54 AM
javascript confirmation with html character code - by El Forum - 05-26-2009, 11:38 AM
javascript confirmation with html character code - by El Forum - 05-26-2009, 11:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB