Saturday, March 31, 2012

Single quotes and treeview

Hi,
I have this website (www.polytools.be).
On this website i use a treeview.
Now when the text that is displayed on the treeview contains single quotes
(') I get a javascript error.
Does anyone know a cure for this?
I would like to use the single quotes.
Thanks in advance.I don't develop much js; but I do know that the string identifier is
'string'. Your single quotes are conflicting; breaking your js. Likely you
need to escape it; which is probably either done by doubling it;
e.g. McDonald''s
or escaping it;
e.g. JC Penny's
Good luck.
"Bart Schelkens" <bschelkens@.hotmail.com> wrote in message
news:OpFM8os$EHA.1260@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have this website (www.polytools.be).
> On this website i use a treeview.
> Now when the text that is displayed on the treeview contains single quotes
> (') I get a javascript error.
> Does anyone know a cure for this?
> I would like to use the single quotes.
> Thanks in advance.
>

0 comments:

Post a Comment