Categories | Question details Back To List | ||
Link Cell Type with Single quotes When I try to create a cell with the following everything works fine. $xml .= "<cell><![CDATA[Browse...^javascript:replaceFile(1)^_self]]></cell>"; But when I try to place single quotes in the string the link does not work properly. $xml .= "<cell><![CDATA[Browse...^javascript:replaceFile('TEST')^_self]]></cell>"; How can I include single quotes in order to pass a string to my javascript? Answer posted by dhxSupport on Apr 22, 2009 06:26 "link" eXcell type renders as link (A tag) and href attribute containg action link in to the single quotes. If action link contain single quotes "link" eXcell type will not rendered well. If you need single quotes in the "link" cell better to implement custom eXcell type. Pleasee see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_excell_creation.html#grid_cexc Answer posted by Michael on Apr 22, 2009 06:41 Thanks, I was able to implement double quotes instead using the escape character. $xml .= "<cell><![CDATA[Browse...^javascript:replaceFile(\"Test\")^_self]]></cell>"; |