missing ) after argument list

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaelancheta009
    New Member
    • Mar 2010
    • 2

    missing ) after argument list

    Hi masters,

    Im having trouble with my code here. It has an error of missing ) after argument list.
    Any amazing programmer that can help me on this.

    here is the part of my code:
    Code:
    buff.append("<tr id="+strChapter+"><td width='15%'><div align='center'>"+strChapter+"</div></td>" +
                    "<td width='70%'><div align='center'><form name="+strChapter+"><textarea cols='66' rows='3' name='message' style='font-family: Verdana; font-size: 8pt;' >"+strMessage+"</textarea></form></div></td><td width='15%'><div align='center'>" +
                    "<input type='submit' style='font-family: Verdana; font-size: 10px;' name='delete' value='DELETE' onclick='deleteContent("+strChapter+");hideRow("+strChapter+");'>" +
                    [B]"<input type='submit' style='font-family: Verdana; font-size: 10px;' name='update' value='UPDATE' onclick='updateContent(document."+strChapter+".message.value,"+strChapter+")'>" +[/B]
                    "</div></td></tr>");
    the error refers to this line:
    Code:
    "<input type='submit' style='font-family: Verdana; font-size: 10px;' name='update' value='UPDATE' onclick='updateContent(document."+strChapter+".message.value,"+strChapter+")'>" +
    I think it is a syntax issue. kindly help me up guys, please.
    Thanks a lot!
    Last edited by Dormilich; Mar 13 '10, 01:36 AM. Reason: Please use [code] tags when posting code
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    strChapter probably needs to be in quotes. Can you give the client-side generated code?

    Comment

    • michaelancheta009
      New Member
      • Mar 2010
      • 2

      #3
      That thing don't work either. The thing here is that I'm appending the string first in a string buffer. Then printing it out only when the method I'm calling ends.

      My problem is how can i resolve the error, when I'm treating it first as a string, not a straight html code.

      hope you could help me guys.

      Comment

      Working...