• 0

Question

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 "

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 1
"<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>"

 

Share this post


Link to post
Share on other sites
  • 0
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 />

Share this post


Link to post
Share on other sites
  • 0
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"

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.