sotid Posted November 7, 2019 Posted November 7, 2019 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 "
1 melron Posted November 7, 2019 Posted November 7, 2019 "<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 protoftw Posted November 7, 2019 Posted November 7, 2019 Try closing the <button> value attribute. </button> before </td>
0 SweeTs Posted November 7, 2019 Posted November 7, 2019 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 sotid Posted November 7, 2019 Author Posted November 7, 2019 back=\"Button.but1\" fore=\"Button.but2\"/> like that?
0 DenArt Designs Posted November 7, 2019 Posted November 7, 2019 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 sotid Posted November 7, 2019 Author Posted November 7, 2019 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. 1
0 sotid Posted November 7, 2019 Author Posted November 7, 2019 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!
Question
sotid
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