Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> PL/SQL Web Toolkit - JavaScript Escape Character
Hello:
I have a package with a stored procedure that writes HTML and JavaScript to a page. One line of the JavaScript reads:
htp.print('if (bNoError == true && isBlank(form.emp_telephone) == false) {');
The problem is with the ampersands. When I compile the package, I receive no errors, but I am prompted to enter a value for isBlank (Oracle thinks I want to define it as a variable on-the-fly).
If I enter "&& isBlank" I can get around the problem, heh. But I figure that there must be a correct way to get around this problem, perhaps some sort of escaping?
Thanks in advance.
-Keith Received on Wed Nov 05 2003 - 18:07:07 CST