I’m having some hard trouble finding the answer for this
Is there anyway to use the ” symbol in java without it assumes that is a text… The ideal i think would be to save the ” to a string.
Can it be done?
I need it because of this, the call of the script is working in dreamweaver
onChange="album(this.value,'albumAlvo')"
but I’m using a javascript call in a dynamic webpage generated by java, and for printing the page am changing the ” to ‘ ending with this as example:
"<table width='100%' border='0' cellspacing='3' cellpadding='0' class='t1'>"+
"<tr><td>"+
that changes my call to
onChange='album(this.value,'albumAlvo')'>
And this way doesnt work. Apparently i really need the ” to make this work. anyone can help me please?
Edited: Just a clearing, this question is about java and coding in a java environment in a java *.class, in a project for google app engine that uses java that prints html web-pages. The only reason why javascript is here is that in fact I needed to call a method from the webpage that was printed by the java web application, but that was irrelevant cause my doubt was for the use of the ” symbol. I thank all for the quick answer.
Just escape it with backslash in your Java program when you create the strings.