Jump to content
  • 0

extra "


sotid

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 "

 

Link to comment
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>"

 

Link to comment
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 />

Link to comment
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"

Link to comment
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
Link to comment
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!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...