Jump to content
  • 0

extra "


Question

Posted

sb.append("<tr><td align=center><button value=" + category.getName() + "\" action=\"bypass -h npc_" + getObjectId() + "_category " + category.getId() + "\" width=204 height=20 back=\"Button.but1\" fore=\"Button.but2\"></td></tr>");

 

and I get this :

http://prntscr.com/pttsfe

 

where is  the extra "

 

7 answers to this question

Recommended Posts

  • 1
Posted
"<tr><td align=center><button value=\"" + category.getName() + "\" action=\"bypass -h npc_" + getObjectId() + "_category " + category.getId() + "\" width=204 height=20 back=\"Button.but1\" fore=\"Button.but2\"></td></tr>"

 

  • 0
Posted
17 minutes ago, sotid said:

align=center><button value=" + category.getName() + "\"

Maybe this as you close \ but you didn't start with it. Closing with button tag won't help and you simply can put />

  • 0
Posted
39 minutes ago, sotid said:

sb.append("<tr><td align=center><button value=" + category.getName() + "\" action=\"bypass -h npc_" + getObjectId() + "_category " + category.getId() + "\" width=204 height=20 back=\"Button.but1\" fore=\"Button.but2\"></td></tr>");

sb.append("<tr><td align=center><button value="\" + category.getName() + "\" action=\"bypass -h npc_" + getObjectId() + "_category " + category.getId() + "\" width=204 height=20 back=\"Button.but1\" fore=\"Button.but2\"></td></tr>");

 

you have value=categoryname" action.... 

so code sees only closing " without opening " and prints that categoryname"

  • 0
Posted
53 minutes ago, sotid said:

back=\"Button.but1\" fore=\"Button.but2\"/>

Didnt work..

 

38 minutes ago, DenArt Designs said:

you have value=categoryname" action.... 

I get a Syntax error.

 

 

  • Haha 1
  • 0
Posted
12 minutes ago, melron said:

"<tr><td align=center><button value=\"" + category.getName() + "\" action=\"bypass -h npc_" + getObjectId() + "_category " + category.getId() + "\" width=204 height=20 back=\"Button.but1\" fore=\"Button.but2\"></td></tr>"

 

 

Thank you! Worked!

Guest
This topic is now closed to further replies.
×
×
  • Create New...