Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Problem Javascript / PLSQL
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