Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard on Dec 12, 2008 10:06
open dhtmlx forum
Tool Tip

Thanks for the example using xml.
This is very nice, but do you also have an example using the array.

trying to get the right format.

The previous devleoper used json to build the array string needed to load the combo box. If I can alter the arrays string to include the inline html this would be great.


z.addOption([[1,111],[2,2222],[3,3333],[4,4444],[5,5555]]);

z.addOption([[1,'<![CDATA[<div title=''long tooltip here''>1</div>]]>']]

I have also tried the below format, but no luck.
[2,'<a title="This is a title test">2</a>'],[3,'<a title="This is a title test">3</a>'],[4,'<a title="This is a title test">4</a>'],[5,'<a title="This is a title test">5</a>']]);
Answer posted on Dec 15, 2008 01:28
Actually the above line works correctly. But you are using A tags - which are inline ones , in result tooltip will be visible only over text and not over free space