Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javascript Parameters containing Apostrophes

Tony FatourosMay 28 2008 — edited Aug 7 2008
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2008
Added on May 28 2008
15 comments
2,187 views