Hello,

I have the following problem when I try to pass <%=something%> on a call
of a javascript function

example :

I have :
session.putValue("something","value1");
session.putValue("somethingElse","value2");

<body onload
="Send('<%=session.getValue("something")%>',<%=session.getValue("somethingElse")%>)"
>

Where "Send" is a JavaScript function.

The problem is that when the browser translate it, it gives :

<body onload="Lancer('value1
',value2
)">

so there is the Javascript Error

unterminated string literal.

Lancer('value1

because Javascript only understand <body onload="Lancer('value1


Is there a solution ? Thanks for answers

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to