title: Getting the error SyntaxError: expected expression, got '}' in Firefox
body: <p>I am trying to create a dynamic html <code>td</code> as shown below:</p>
  
  <pre><code>var id = "testId";
  var issueId = "testIssueId";
  
  var sourceRow = ($(this).find("OBJECTID").text() === "") ? '&lt;td&gt;&lt;/td&gt;' : "&lt;td&gt;&lt;img src='contactImages/attachmentImage.png' onclick='issueAttachmentAttachmentLookUp('"+id+"','"+issueId+"')'&gt; &lt;/img&gt;&lt;/td&gt;" ;
  </code></pre>
  
  <p>I am getting the following error when I click on the above  <code>td</code>(In Firefox):</p>
  
  <blockquote>
    <p>SyntaxError: expected expression, got '}'</p>
  </blockquote>
  
  <p>The function is:</p>
  
  <pre><code>function issueAttachmentAttachmentLookUp(strIssueID, issueID1)
  {
      var aryArgument = new Array();
  
      aryArgument[0] = m_stateData;
      aryArgument[1] = g_ContactSoapWebServiceURL;
      aryArgument[2] = g_PQContactTree;
      aryArgument[3] = strIssueID;
      aryArgument[4] = m_PQClientConfig;
      aryArgument[5] = g_BAList;
      aryArgument[6] = g_references;
      aryArgument[7] = ResponseNode;
      aryArgument[8] = issueCurrentBA;
      aryArgument[9] = issueID1;
  
      ModalHelper.showModalDialog(
          'PQCaseAttachment.htm',
          'Issue Attachments',
          890,
          700,
          aryArgument,
          function(refreshWindow)
          {
              if(refreshWindow){
                  refresh();
              }
          }
      );
  }
  </code></pre>
  
  <p>I am suspecting that something is wrong with the onclick event syntax, but couldn't identify the problem.</p>
  
  <p>Anybody has any clue?</p>