D
davegraham_1998
Hi All-
I'm pretty sure this have been discussed earlier, but couldn't find a
solution to my problem.
<input type="submit"
value="Delete Parts"
onclick="return handleDeleteParts('ABC', 'MY
DESCRIPTION')">
I'm using something (Struts ResponseUtils.filter()) which translate 'MY
DESCRIPTION' in such a manner that a double quote is replaced by "
and a single quote to '
The problem is if there is a single quote (translated to ') i get a
javascript error (small error icon on the status bar)it says, "Error:
Expected ")"
if I change the above to:
<input type="submit"
value="Delete Parts"
onclick='return handleDeleteParts("ABC", "MY
DESCRIPTION")'>
it works fine, but a new error is introduced in that now i run into the
same problem is MY DESCRIPTION has a double quote in it.
Here is an actual line:
<input type="submit"
DISABLED
value="Delete Parts"
onclick="return handleDeleteParts('XF2',
''Mustang' Logo Fabric Bucket Seats')">
Any help is appreciated.
I'm pretty sure this have been discussed earlier, but couldn't find a
solution to my problem.
<input type="submit"
value="Delete Parts"
onclick="return handleDeleteParts('ABC', 'MY
DESCRIPTION')">
I'm using something (Struts ResponseUtils.filter()) which translate 'MY
DESCRIPTION' in such a manner that a double quote is replaced by "
and a single quote to '
The problem is if there is a single quote (translated to ') i get a
javascript error (small error icon on the status bar)it says, "Error:
Expected ")"
if I change the above to:
<input type="submit"
value="Delete Parts"
onclick='return handleDeleteParts("ABC", "MY
DESCRIPTION")'>
it works fine, but a new error is introduced in that now i run into the
same problem is MY DESCRIPTION has a double quote in it.
Here is an actual line:
<input type="submit"
DISABLED
value="Delete Parts"
onclick="return handleDeleteParts('XF2',
''Mustang' Logo Fabric Bucket Seats')">
Any help is appreciated.