Use templates and put all your javascript in to that.So that you need not
worry about escapes and slashes .. :)
On Thu, 10 Aug 2000, colin yates wrote:
Can you not escape the quotes with a slash (i.e.):
out.println("document.images[imgName].src=eval(imgObjName + \".src\");");
Just a
Hi Guys,
This is urgent, I am writing a servlet which contains javascript, i
somehow need to put double quotes instead of
single quote ['src'] into ["src"].
out.println("document.images[imgName].src = eval(imgObjName +
'.src');");
so that the servlet generated javascript will look
Can you not escape the quotes with a slash (i.e.):
out.println("document.images[imgName].src=eval(imgObjName + \".src\");");
Just a thought :-)
Col
karthikeyan wrote:
Hi Guys,
This is urgent, I am writing a servlet which contains javascript, i
somehow need to put double quotes instead
Can you not just escape the quotes:
eval(imgObjName + \".src\"););
Just a thought :-)
Cheers
Col
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Use escape characters for double quotes like this
\"
\'
for single quotes
Bye
Jiger
From: karthikeyan [EMAIL PROTECTED]
Reply-To: "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subjec