title: Passing Objects as Parameters in javascript function
body: <p>I want to pass Objects as parameters to the javascript function and </p>
  
  <p>I had tried with the following,Actually iam calling the function the function in innerHtml..</p>
  
  <pre><code>var tempObj={
          result:results,
          jsobj:jsObj
      }
  
      str +='&lt;input type="button" onclick="buildCstrWiseChart('+tempObj+')" value="View" class="btn btn-info"&gt;';
  </code></pre>
  
  <p>but this didnt works for me iam getting the error like..</p>
  
  <pre><code>SyntaxError: missing ] after element list
  [Break On This Error]   
  
  buildCstrWiseChart([object Object])
  </code></pre>
  
  <p>can any one help in this..</p>