Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Igor Gontcharov on Aug 10, 2009 04:00
open dhtmlx forum
DHTML Combobox, dynamic filtering and custom HTML inside options

Hi huys. First of all thank you for this great staff.
Im using combobox in my app with dynamic PHP file which generates XML like:

<complete>
<option>My name</option>

The problemm is that i cannot insert my custom HTML inside options. It simply wont works with HTML inside of it.
F.e:

<complete>
<option><a href='mydomain.com'>click me</a> My name</option>

Could somebody please help me and thanks....
Answer posted by Alex (support) on Aug 10, 2009 06:22

Hello, 

combo option has own onclick event handler. So, the link should be placed as following (if options are loaded from xml file):

<option value="some value"><![CDATA[<a href="mydomain.com" onclick="(event||arguments[0]).cancelBubble=true">click me</a>]]></option>

Answer posted on Aug 10, 2009 20:12
thank you very much