Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by CHUAN on Oct 26, 2007 14:24
open dhtmlx forum
HTML button/image in a cell

I tried the following syntax but it doesn't work, the result is a regular link instead of a linkable image, can someone give me a working example?

I use this following code in cell which has a type of "link"

'images/ico_edit.gif^Edit^index.php?op=edit^_self'

img url^alt text^link url^link target

Thanks

Chuan
Answer posted on Oct 29, 2007 06:59
The code which you are using can work in case of "img" column type, for "link" column you need to provide actual HTML code ( because by default it create a text link )


<cell><![CDATA[ <img src='images/ico_edit.gif'>^Edit^index.php?op=edit^_self ]]></cell>