Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> OAS: Getting pl/sql variables into Javascript variables..

OAS: Getting pl/sql variables into Javascript variables..

From: Steve B <steve.bright_at_capgemini.co.uk>
Date: Thu, 28 Oct 1999 13:15:41 +0100
Message-ID: <7v9epg$63u$1@taliesin.netcom.net.uk>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US