shellyBelly / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

How to bind options dynamically #250

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
** What steps will reproduce the problem?

** What is the expected output? What do you see instead?

** What is your environment?
-- DropDownCheckList version:
-- jQuery version:
-- jQuery UI version:
-- Browser and version:

** Please provide any additional information below/Please attach sample
html

Could you please provide me the code to bind the options dynamically to the 
dropdowncheckboxlist plugin

Original issue reported on code.google.com by kamalana...@gmail.com on 19 Jun 2012 at 5:50

GoogleCodeExporter commented 9 years ago
I am not quite sure what you are looking for.

DDCL is constructed just like any other jQuery UI widget, and the options are 
supplied when DDCL is applied to the target SELECT item. While the options are 
often part of static javascript encoded directly into the html, you can invoke 
any dynamic processing you like to construct the option list.

There is no support to modify the options on the fly.  You have to destroy the 
DDCL and rebuild with a new option list if you want something different.

Original comment by womohun...@ittrium.com on 21 Jun 2012 at 1:50

GoogleCodeExporter commented 9 years ago
I´m facing the same problem: when I try to build the option list dinamically 
via a javascript function, my SELECT item doesn't show the options, just shows 
an empty list.

<select id="s10" class="s10" multiple="multiple">
<script type="text/javascript">
 buildoptionlist()
</script>
</select>

Original comment by amil...@centrogeo.org on 27 Jun 2012 at 2:50

GoogleCodeExporter commented 9 years ago
I need a simple, self-contained HTML example that demonstrates this problem in 
order assist you.

Original comment by womohun...@ittrium.com on 27 Jun 2012 at 2:40

GoogleCodeExporter commented 9 years ago
Hi:
I�m sending you two files:
markerList.xml :: XML returned by php
ddcl-test1.html :: The example

Thanks in advance.

Original comment by amil...@centrogeo.org on 28 Jun 2012 at 1:02