Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 21, 2008 04:45
open dhtmlx forum
Image in Footer

Hi,
Is it possible to insert an image and text in the same cell of the footer? If yes then how to do so? Please guide me.
Answer posted on May 21, 2008 05:22

Any HTML content can be placed inside footer|header cell

 

In case of init from JS it will be

grid.attachFooter("A,B <img src='some.gif'>,C")

In case of init from XML it will be

<afterInit>
   <call command='attachFooter"><param><![CDATA[ A,B <img src='some.gif'>,C ]]></param></call>
</afterInit>

Answer posted on May 22, 2008 03:51

Thanks for the speedy answer. It does work.

When i try to insert the 'OnMouseOver' and 'OnMouseOut' functions the image is not getting displayed.

The syntax i'm using is

<afterInit>
   <call command='attachFooter"><param><![CDATA[ A,B <img onmouseover=""Function1();"" onmouseout=""function2();"" src='some.gif'>,C ]]></param></call>
</afterInit>

Please suggest me on where i'm going wrong.

Answer posted by Support on May 22, 2008 09:37

the provided code is correct
by any change - is the real code contain few parameters in custom functions separated by comma?

Comma used as separator , so it need to be escaped inside header titles.

Incorrect code
   <call command='attachFooter"><param><![CDATA[ A,B <img onmouseover=""Function1(a,b);"">,C ]]></param></call>

Correct code
   <call command='attachFooter"><param><![CDATA[ A,B <img onmouseover=""Function1(a\,b);"">,C ]]></param></call>