Outline ·
[ Standard ] ·
Linear+
Javascript Problem again, Here's another one with the '
|
TSrukawa
|
Jan 12 2006, 12:54 PM, updated 20y ago
|
|
OK, it's not everytime you'll get this problem but hey it's giving me a headache especially names that have the apostrophe ' symbol in them
especially when I am calling a javascript function which pass in variables, it'll interfere with the javascript functions.
Example invokeParent('1','Oscar D' La Hoya');
Yes I know about the escape sequence, the problem is that the name is taken out from the database. Any javascript to handle this?
|
|
|
|
|
|
anthony_yio
|
Jan 12 2006, 01:58 PM
|
........
|
QUOTE(rukawa @ Jan 12 2006, 12:54 PM) OK, it's not everytime you'll get this problem but hey it's giving me a headache especially names that have the apostrophe ' symbol in them especially when I am calling a javascript function which pass in variables, it'll interfere with the javascript functions. Example invokeParent('1','Oscar D' La Hoya'); Yes I know about the escape sequence, the problem is that the name is taken out from the database. Any javascript to handle this? Why not to convert all those unhandled or might interface the HTML rendering or Javascript parsing char to ASCII codes instead?
|
|
|
|
|
|
SincerePrayer
|
Jan 12 2006, 02:51 PM
|
love to pray
|
rukawa, You can try escape it using the function below CODE escape(......) later, use the function below to unescape to the original text CODE unescape(.....) Happy Coding
|
|
|
|
|
|
shinchan^^
|
Jan 12 2006, 03:53 PM
|
|
u can use either " " or ' '
|
|
|
|
|