Javascript Parameters containing Apostrophes
Hi,
Hoping someone can assist, within a report column link attribute, I have the following information set-up:
Target: URL
URL: javascript:performDelApr('#First Name#','#Last Name#','#Login#');
Obviously, these are my report columns that I want to pass their values to my performDelApr javascript function.
Now my problem is, one of my records has a person's last name that consists of a apostrophe, that is: D'Marco. So when I hover over the link that will call this js function on an onclick event, the call looks like this:
javascript:performDelApr('Ron','D'Marco','GUEST');
When I click, I receive an error on page b/c of the apostrophe in D'Marco, which is also enclosed with the single quotes.
How can I escape or get passed this problem as I need to pass in the person's name details?
Thanks.
Tony.