Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> OAS: Getting pl/sql variables into Javascript variables..
I've a slight problem...
I need to store the values of pl/sql variables into javascript variables..
the following code works fine most of the time
snippet of code....
<script language=JavaScript>
var test1 = "'|| l_text ||'";
</script>
However, when the pl/sql variable contains a reserved character, such as an apostrophe....there is a failure in javascript...
I was wondering, does anyone have any pl/sql that will 'escape' the pl/sql variable in the same way that the javascript escape() funtion works ????
Cheers
Steve Bright
steve.bright_at_capgemini.co.uk Received on Thu Oct 28 1999 - 07:15:41 CDT
![]() |
![]() |