Mai, Chosen just modifies UI elements on the front end and doesn't care about what provides the data on the server side. Just create your WOPopup/WOBrowser elements as usual, and then use Chosen to modify them as shown on the demo pages.
Example (using prototype 1.7):
<wo:browser list="$list" item="$item" id="myBrowserElement" multiple="$true" selections="$selections" /> <script type="text/_javascript_"> new Chosen($("myBrowserElement"),{no_results_text: "No results matched"}); </script>
Cheers, - hugi
On 6.1.2012, at 19:50, Mai Nguyen wrote: Hello, Has anyone used Chosen with a WOPopUpButton? The Chosen example shows a simple list with existing values, so I wonder how an example would work with WO Elements, like a popup button when the list data needs to be fetched from the database.
thanks for any pointers,
-mai On Jan 6, 2012, at 10:09 AM, ISHIMOTO Ken wrote: jQuery and the Ajax Frameworks work great together. On 2012/01/06, at 15:46, Jérémy DE ROYER [INGENCYS] wrote: Why not using jQuery it's easy to use with prototype ?
Jérémy Le 6 janv. 2012 à 14:57, James Cicenia a écrit : Perfect!
I am taking an old Noxymo app and rewriting the front end without noxymo and with wonder and ajax.
And this little _javascript_ framework nails some UI features I want to implement.
James
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|