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

Home -> Community -> Usenet -> c.d.o.misc -> Problem Javascript / PLSQL

Problem Javascript / PLSQL

From: Fabiano Pallonetto <fp.soft_at_tiscali.it>
Date: Tue, 12 Apr 2005 08:05:11 GMT
Message-ID: <XiL6e.767874$b5.34374888@news3.tin.it>


Hi to everybody,
should be a really simple thing but I cannot see my error. I have to pass a string from PL/SQL to Javascript in my application but it doesn't work, here there is an example: the problem is here ********

<%@ page language="PL/SQL" %>
<%@ plsql parameter="NomeProc" %>

<HTML>
<HEAD><TITLE>Mostra Procedura</TITLE></HEAD>
<BODY>
<H1>SourceCode </H1>
<H2>From <I>sourceproc.psp</I> </H2>
<I><font size=+1> Procedure name=<%= NomeProc %></font></I> </TD>
<TABLE>
<% for codice in

       (select line, text from User_source u where u.name like NomeProc)    loop %>
<TR> <TD><%= codice.line %></TD><TD><script>****** document.write('<%=
codice.text %>')********</script> </TD> </TR>
<% end loop; %>
</TABLE>
</BODY>
</HTML>

if I put the PLSQL istruction <%= codice.text %> in the middle of the javascript it doesn't work and I cannot understand why. Thank you so much for your help.
Fabiano Received on Tue Apr 12 2005 - 03:05:11 CDT

Original text of this message

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