How to pass a String variable containing value with hyphens as a java script function parameter
<p>Hi I am a newbie to java script. Have issues in passing the string variable whose value contains hyphen as function parameter. Fire bug throws an error saying 'identifier starts immediately after numeric literal'</p>

<p>I am using flexigrid to display data. In each row have placed an image. On click of that image a java script function should be called. Setting up of flexigrid record content is done in java as below,</p>

<pre><code>record.put("view","&lt;img src='images/ic_text_document.png' onclick='view_content("+objid+")'/&gt; ");
</code></pre>

<p>Value of the varible objid is something like this c2692d22-a407-4d38-85ee-5c16f25bcce7. 
Firebug throws identifier starts immediately after numeric literal' error by pointing at the 14th digit (in the above example at 4). </p>

<p>Tried passing the variable with different combination of quotes as suggested in other posts but dint work. Can somebody help me with this?</p>
