title: Javascript Error,Escaping Problem,Grid not working,Error on Firebug
body: <p>we are just started with Sigma Grid ,and it is awesome in its functionality when we compared to other Grids.</p>
  
  <p>But i encountered some problem with Sigma Grid ,or may be with javascript.
  I dont know whether  the problem is with Grid or with my code.</p>
  
  <p><strong>I have a table with 3 fields namely MailID,MailName,MailData.</strong></p>
  
  <p>MailID is int ,MailName and MailData contains HTML content and it save as string in database.</p>
  
  <p>When i load the Grid,i have some problems.</p>
  
  <p><strong>Problem 1 :</strong></p>
  
  <hr>
  
  <p>As i said above the Maildata contain html content,the following image is just a example with &lt;*b>  ,u can see that the HTML is automatically rendering on the grid itself ,i need the exact string.</p>
  
  <p>please check the following image.</p>
  
  <p><strong>Problem 2 :</strong></p>
  
  <hr>
  
  <p>as u can see i have links on the grid,for edit,send,delete but on one filed its damaged.[check the image below ]</p>
  
  <p>the code i used to render links is following .</p>
  
  <pre><code>{id: 'mailid' ,  header: "Action", width :120 , resizable : false, sortable : false , printable : false ,
          renderer : function(value ,record,columnObj,grid,colNo,rowNo){
                  var no= record[columnObj.fieldIndex];
                  var cod =  (record['maildata']);
                  return '&lt;a href=\"#\" class=\"myli\" onClick="showalert('+no+');"&gt;Edit&lt;/a&gt; | &lt;a href=\"#\" onClick=\"alert('+cod+')\";&gt;Send&lt;/a&gt; | &lt;a href=\"#\"&gt;Delete&lt;/a&gt;';
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/VbA0m.png" alt="http://i52.tinypic.com/f02c01.png"></p>
  
  <p><strong>Problem 3 :</strong></p>
  
  <hr>
  
  <p>The third value of MailData is 5 and it is integer ,when i alert the value its shows it correctly.
  check the following image.
  <img src="https://i.stack.imgur.com/r5EYQ.png" alt="http://i51.tinypic.com/2uqivyv.png"></p>
  
  <p>But when i alert the second value of maildata it giving error ,the second value of MailData is "hai newuser" ,it showing the following error on firebug.</p>
  
  <pre><code>missing ) after argument list
   alert(hai newuser)
  </code></pre>
  
  <p>check the image below.</p>
  
  <p><img src="https://i.stack.imgur.com/qM7YF.png" alt="http://i54.tinypic.com/2dc7h8k.png"></p>
  
  <p>But when i alert 9th value of MailData it run correctly ,the content is &lt;<em>b>poy&lt;</em>/b> ,this one is also save as string,but the grid automatically BOLD [which i dnt like].Check the image below.
  <img src="https://i.stack.imgur.com/oabNn.png" alt="http://i53.tinypic.com/10fceb4.png"></p>
  
  <p>also there are some others the 7the value contain ;".: etc ,also  /b ,when i alert the data it showing the following error,</p>
  
  <pre><code>unexpected end of XML source
   alert(&lt;b&gt;jjfdslkdjflsdnfsldfnf
  </code></pre>
  
  <p>dsOptions and ColOptions are following .</p>
  
  <pre><code>var dsOption= {
  
      fields :[
          {name : 'mailid'  },
          {name : 'mailname',type:"text"  },
          {name : 'maildata',type:"text"  }
  
  
  
  
  
  
      ],
  
      recordType : 'object',
  
  
  }
  
  
      function my_renderer(value ,record,columnObj,grid,colNo,rowNo)
      {
          var no= record[columnObj.fieldIndex];
          return "&lt;img src=\"./images/flag_" + no.toLowerCase() + ".gif\"&gt;";
          }
          function showalert(no)
          {
          $(document).ready(function()
          {
  
  
  
          $.post("http://localhost/power/index.php/power/give",{ name: no}, function(data)
              {
              //alert("Data Loaded: " + data);
              $("#editor").show("fast");
              $( '#txtar' ).ckeditor();
              $('#txtar' ).val( data.maildata );
              //$("#editor").html(data);
              },"json"
           );
  
          });
          }
  
  
  
  var colsOption = [
       {id: 'mailid' , header: "Mail ID" , width :60},
       {id: 'mailname' , header: "Mail Name" , width :160 ,type:"text"},
         {id: 'maildata' , header: "Mail Data" , width :190,type:"text" },
          {header: "Group" , width :70,
       editor : { type :"select" ,options : {'php':'php','asp':'asp'} 
       ,defaultText : 'php' }  },
  
  
         {id: 'mailid' ,  header: "Action", width :120 , resizable : false, sortable : false , printable : false ,
          renderer : function(value ,record,columnObj,grid,colNo,rowNo){
                  var no= record[columnObj.fieldIndex];
                  var cod =  (record['maildata']);
                  return '&lt;a href=\"#\" class=\"myli\" onClick="showalert('+no+');"&gt;Edit&lt;/a&gt; | &lt;a href=\"#\" onClick=\"alert('+cod+')\";&gt;Send&lt;/a&gt; | &lt;a href=\"#\"&gt;Delete&lt;/a&gt;';
              }  } 
  ];
  </code></pre>
  
  <p>I am littlebit new in Javascript and Sigmagrid,i think that i am doing something worst with codes,pls help me to success.</p>
  
  <p>Thank you.</p>
  
  <p><em>Note : i posted the same Question on Sigma Grid Forum too,i think that it is not a problem.</em></p>