<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Eric Hynds - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-a31e6dc2" type="application/json"/><link>http://erichynds.disqus.com/</link><description></description><atom:link href="http://erichynds.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 22 May 2013 02:03:40 -0000</lastBuildDate><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-904603675</link><description>&lt;p&gt;try this &lt;/p&gt;

&lt;p&gt;    $("#ddl").multiselect({&lt;br&gt;        open: function (event, ui) {&lt;br&gt;            $(this).multiselect("widget").find(".ui-multiselect-filter [type=search]").focus();&lt;br&gt;        }&lt;br&gt;    }).multiselectfilter();&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alvin Robles Terible</dc:creator><pubDate>Wed, 22 May 2013 02:03:40 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-904420149</link><description>&lt;p&gt;Hi, there! How can I get the group that belongs the checked option? Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcos</dc:creator><pubDate>Tue, 21 May 2013 20:16:16 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-903505741</link><description>&lt;p&gt;I'm trying to use the widget in one of application but I'm not able to. &lt;br&gt;PFB the html file.&lt;br&gt;I have  jquery.multiselect.js, jquery.multiselect.css in my home directory.&lt;br&gt;Pl help me fix the issue.&lt;/p&gt;

&lt;p&gt;&amp;lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt; &lt;br&gt;	   &amp;lt;script src="http://code.jquery.com/jquery-1.8.2.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;		&amp;lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;		&amp;lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/ui-lightness/jquery-ui.css" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;&amp;lt;script src="jquery.multiselect.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;&amp;lt;script src="jquery.multiselect.css" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;	 &amp;lt;script type="text/javascript"&amp;gt;&lt;br&gt;	 $("#x_cat").multiselect(); &lt;br&gt;&amp;lt;/script&amp;gt;&lt;br&gt;	 &lt;br&gt;	 &lt;br&gt;Categories:&lt;br&gt;&amp;lt;select id="x_cat" multiple=""&amp;gt; &lt;br&gt;&amp;lt;option value="1"&amp;gt;Option 1&amp;lt;/option&amp;gt;&lt;br&gt;&amp;lt;option value="2"&amp;gt;Option 2&amp;lt;/option&amp;gt;&lt;br&gt;&amp;lt;option value="3"&amp;gt;Option 3&amp;lt;/option&amp;gt;&lt;br&gt;&amp;lt;option value="4"&amp;gt;Option 4&amp;lt;/option&amp;gt;&lt;br&gt;&amp;lt;option value="5"&amp;gt;Option 5&amp;lt;/option&amp;gt;&lt;br&gt;&amp;lt;/select&amp;gt; &lt;/p&gt;

&lt;p&gt;    &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gopi Sivashanmugam</dc:creator><pubDate>Mon, 20 May 2013 21:10:03 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-899027421</link><description>&lt;p&gt;i found a solution to get it work with SQl database without any submit button&lt;/p&gt;

&lt;p&gt;it will work dynamically and i'm using it now.&lt;/p&gt;

&lt;p&gt;starts with the multiselect widget we have&lt;br&gt;just apply it as the developer explained and change small thing&lt;/p&gt;

&lt;p&gt;this is an example&lt;/p&gt;

&lt;p&gt;&amp;lt;select class="multi" id="option" multiple="" name="option[]" onchange="update()" size="1" style="width:220px"&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;option value="1"&amp;gt;Option 1&amp;lt;/option&amp;gt;&lt;br&gt;&amp;lt;option value="2"&amp;gt;Option 2&amp;lt;/option&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;/select&amp;gt;&lt;/p&gt;

&lt;p&gt;notice the square brackets [] means array in the name field&lt;/p&gt;

&lt;p&gt;and Onchange as well to be used in java&lt;/p&gt;

&lt;p&gt;then add JavaScript underneath &lt;/p&gt;

&lt;p&gt;&amp;lt;script&amp;gt;&lt;br&gt;// this will auto update the selection&lt;/p&gt;

&lt;p&gt;// the onchange value mus be the same as this one and change it if you have many wedges in one page &lt;br&gt;function update() {&lt;br&gt;// I am using jquery for ajax&lt;br&gt;$.post("updater.php", $("#option").serialize());&lt;br&gt;}&lt;br&gt;//and this will get the checked boxes&lt;br&gt;var target = $("#target");&lt;/p&gt;

&lt;p&gt;$("select")&lt;br&gt;    .multiselect()&lt;br&gt;    .bind("multiselectclick multiselectcheckall multiselectuncheckall", function( event, ui ){&lt;br&gt;        &lt;br&gt;        // the getChecked method returns an array of DOM elements.&lt;br&gt;        // map over them to create a new array of just the values.&lt;br&gt;        // you could also do this by maintaining your own array of &lt;br&gt;        // checked/unchecked values, but this is just as easy.&lt;br&gt;        var checkedValues = $.map($(this).multiselect("getChecked"), function( input ){&lt;br&gt;            return input.value;&lt;br&gt;        });&lt;br&gt;        &lt;br&gt;        // update the target based on how many are checked&lt;br&gt;        target.html(&lt;br&gt;            checkedValues.length&lt;br&gt;                ? checkedValues.join(',')&lt;br&gt;                : 'Please select a checkbox' &lt;br&gt;        );&lt;br&gt;    })&lt;br&gt;    .triggerHandler("multiselectclick"); // trigger above logic when page first loads&lt;br&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;

&lt;p&gt;on the php file named &lt;br&gt;updater.php&lt;br&gt;and imagine in SQL we have a row called ( choices ) in a table called mytable&lt;br&gt;&lt;/p&gt;

&lt;p&gt;it will be saved 100% as an array like this&lt;br&gt;a:2:{i:0;s:1:"2";i:1;s:2:"22";}&lt;/p&gt;

&lt;p&gt;if you want the database to drive the checked boxes&lt;br&gt;i mean to get them checked using database info&lt;/p&gt;

&lt;p&gt;we know if we have any option in the menu we just need to add selected="selected"&lt;br&gt;and it will be checked on page loading&lt;br&gt;to do it we need to use basic PHP&lt;br&gt;we need to retrieve the info (we sent already when we check the boxes)  from the database&lt;br&gt;using PHP&lt;/p&gt;

&lt;p&gt;$selected = "SELECT * FROM mytable where id='1'";&lt;br&gt;   $selectedresult = mysql_query ($selected);&lt;br&gt;while($row = mysql_fetch_array($selectedresult))&lt;br&gt; {&lt;/p&gt;

&lt;p&gt;//get our row&lt;br&gt;$myarray= $row['choices'];&lt;/p&gt;

&lt;p&gt;then we search for any thing between quotes using this code to get a good array format&lt;br&gt;because it's saved like this&lt;br&gt;a:2:{i:0;s:1:"2";i:1;s:2:"22";}&lt;br&gt;and anything in between the double quotes is what you checked in the multiselect menu&lt;br&gt;we will use this code&lt;/p&gt;

&lt;p&gt;if (preg_match_all('~(["\'])([^"\']+)\1~', $myarray, $newarray));&lt;/p&gt;

&lt;p&gt;//now we have a new array named $newarray and its like this form&lt;br&gt;Array ( [0] =&amp;gt; 3 [1] =&amp;gt; 4 [2] =&amp;gt; 5 [3] =&amp;gt; 6 [4] =&amp;gt; 8 [5] =&amp;gt; 9 [6] =&amp;gt; 16 [7] =&amp;gt; 23 [8] =&amp;gt; 25 )&lt;/p&gt;

&lt;p&gt;we will now find the options using php (in_array) function which searches the array for any value we want&lt;/p&gt;

&lt;p&gt;and if the value is there we will echo selected="selected" inside every option using php and it will be selected as database provides&lt;/p&gt;

&lt;p&gt;like this&lt;/p&gt;

&lt;p&gt;&amp;lt;option ";="" "selected="selected" $newarray[2]))="" (in_array("1",="" &amp;lt;?php="" ?="" echo="" if="" {="" }=""&amp;gt;  value="1"&amp;gt;Option 1&amp;lt;/option&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;option ";="" "selected="selected" $newarray[2]))="" (in_array("2",="" &amp;lt;?php="" ?="" echo="" if="" {="" }=""&amp;gt; value="2"&amp;gt;Option 2&amp;lt;/option&amp;gt;&lt;/p&gt;

&lt;p&gt;i hope this is clear&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tdya ..</dc:creator><pubDate>Thu, 16 May 2013 05:29:08 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-897286356</link><description>&lt;p&gt;Could you help me please i need a single select and also filter option at the same time, or how can i make to recognize wich key is typping and select the option. Thank U&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DvdCisneros</dc:creator><pubDate>Tue, 14 May 2013 13:48:24 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-897083467</link><description>&lt;p&gt;how to add dynamic group to this list????&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bharatPune</dc:creator><pubDate>Tue, 14 May 2013 10:13:55 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-895932518</link><description>&lt;p&gt;prueba&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Prueba</dc:creator><pubDate>Mon, 13 May 2013 11:17:59 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-892975809</link><description>&lt;p&gt;i want to add more options when open the dropdown. I can added the options as per preloaded options. but when i select some options from new ones, the values never feed on the header. and also the mouse over function only works on older ones. How can i achieve this. Help me any one.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bharath Ram</dc:creator><pubDate>Sat, 11 May 2013 07:43:33 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-890832123</link><description>&lt;p&gt;Thank you for this great PlugIn ! So perfect :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michel Bourbeau</dc:creator><pubDate>Thu, 09 May 2013 08:59:42 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-890769139</link><description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;where is call for initialization?&lt;br&gt;Try with this at the bottom:&lt;/p&gt;

&lt;p&gt;$("#example").multiselect();&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mamun Rashid</dc:creator><pubDate>Thu, 09 May 2013 07:11:46 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-890764300</link><description>&lt;p&gt;Hi thanks for you nice plugin. I need to use Optgroups with may be conditions in first group some radio buttons and based on that in second group some checkboxes. &lt;/p&gt;

&lt;p&gt;I need your help with the documentation. I found no example how to use Optgroups. Can you please send me some example how can i use Optgroup.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mamun Rashid</dc:creator><pubDate>Thu, 09 May 2013 07:05:40 -0000</pubDate></item><item><title>Re: Tips for Developing jQuery UI 1.8 Widgets</title><link>http://www.erichynds.com/jquery/tips-for-developing-jquery-ui-widgets/#comment-889215295</link><description>&lt;p&gt;thank you. very good!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Galen</dc:creator><pubDate>Wed, 08 May 2013 02:18:40 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-887377027</link><description>&lt;p&gt;Hi dude,&lt;br&gt;Thanks for your library. It's useful.&lt;br&gt;But i have some trouble when used it. Please help me.&lt;br&gt;I selected some items in list, but when page is post back( example: I clicked search button), only checked in the last clicked item. &lt;/p&gt;

&lt;p&gt;Thanks so much.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NhatHD</dc:creator><pubDate>Mon, 06 May 2013 22:52:56 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-886505181</link><description>&lt;p&gt;Hi dude. Thanks for your library.. It is awesome. Love it.&lt;/p&gt;

&lt;p&gt;I have one problem when I use the Filter + CheckAll or Uncheck All. I've got an error regarding "the _self._toggleState is not a function"  _self._toggleState('selected', flag).call(this);&lt;/p&gt;

&lt;p&gt;This is the line 81 of the jquery.selectlist.filter.js file.&lt;/p&gt;

&lt;p&gt;I've been using your library for a while and always worked fine, even more, the select all and unselect all works fine (all elements are selected), but I've got that error... and it casues that for example I cannot bind an action on the checkAll or unCheckall functionality.&lt;/p&gt;

&lt;p&gt;Could you please help me??&lt;/p&gt;

&lt;p&gt;thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luis Fernando</dc:creator><pubDate>Mon, 06 May 2013 10:01:43 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-882074595</link><description>&lt;p&gt;Facing quite the same problem today, solved hacking a bit the code.&lt;/p&gt;

&lt;p&gt;For removing the buttons you have to edit the code of jquery.multiselect.js about at row 82. Delete the first "&amp;lt; li &amp;gt;" element at all, in the second "&amp;lt; li &amp;gt;" element delete the "&amp;lt; span class="ui-icon ... " element and use the uncheckAllText parameter for your "Reset" text.&lt;/p&gt;

&lt;p&gt;Finally edit the row 89 to delete the closing icon, but I suggest to retain it.&lt;/p&gt;

&lt;p&gt;Hope this helps&lt;/p&gt;

&lt;p&gt;Andrea&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrea Qualsiasi</dc:creator><pubDate>Thu, 02 May 2013 04:15:48 -0000</pubDate></item><item><title>Re: Using Deferreds in jQuery 1.5</title><link>http://www.erichynds.com/jquery/using-deferreds-in-jquery/#comment-881252101</link><description>&lt;p&gt;Thanks, I've been trying to understand this from last couple of days. Now I can start practicing all benefits of Deferred. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anup Yadav</dc:creator><pubDate>Wed, 01 May 2013 09:43:16 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-880253741</link><description>&lt;p&gt;Hi friend,&lt;/p&gt;

&lt;p&gt;check all function is not working for me,so how can i change that function plz help me&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Elavarasan</dc:creator><pubDate>Tue, 30 Apr 2013 04:57:05 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-873897153</link><description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I have a issue using this widget. Our requirement is there is a button, on click of which a new jsp is rendered in AUI panel. Now in this panel there are four multiselect boxes. Each time the jsp is loaded on click of the button, we are creating multiselect boxes. So, for the first time these boxes works fine but from second time onwards, it stops working. It does not allow to select any option. And we are not allowing a user to select multiple values. I know its silly, but we have used multiselect widget for its look and feel. Any one please help. Do I need to destroy the widget whenever the panel is closed?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">abc123</dc:creator><pubDate>Wed, 24 Apr 2013 01:59:38 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-873666576</link><description>&lt;p&gt;I'm using it in a ASP.NET WebForms project. I use the asp control ListBox that renders like a multiselect and with a requirefiendvalidator. I found a bug, when I select optiosn an then unselect the last selected option, the control clears all the selection (I can tell because requierefieldvalidator shows it), this doesn´t happen when I inselect other option than the last selected)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sebastián Rojas Ricaurte</dc:creator><pubDate>Tue, 23 Apr 2013 18:25:22 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-872430264</link><description>&lt;p&gt;Hello, I want to use it, but i'd like to stay allways open and I don´t find how to do it.&lt;br&gt;Any idea?&lt;br&gt;Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rafael Castillo Casares</dc:creator><pubDate>Mon, 22 Apr 2013 13:59:41 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-872180345</link><description>&lt;p&gt;use javascript to modify the original &amp;lt;select&amp;gt; menu then run the refresh method and the optinlist will update&amp;lt;/select&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Owen Melbourne</dc:creator><pubDate>Mon, 22 Apr 2013 08:54:56 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-866399167</link><description>&lt;p&gt;Hey all, is this plug-in is still active?  So far I like the tool, but I'm having issues with mobile styles and making the dropdowns  (button) look more like a traditional drop down (select) from the mobile and desktop perspective.  Anyone run into this?  I have created my own styles and am overriding a jquery-ui theme, but it feels like a hack.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Horton</dc:creator><pubDate>Wed, 17 Apr 2013 17:16:26 -0000</pubDate></item><item><title>Re: JavaScript Loop Performance: Caching the &amp;#8216;.length&amp;#8217; Property of an Array</title><link>http://www.erichynds.com/javascript/javascript-loop-performance-caching-the-length-property-of-an-array/#comment-866164699</link><description>&lt;p&gt;I prefer the old (assembler style) method of counting down. It may not be intuitive the first time you see it, but the pattern is well known and has been around a long time&lt;/p&gt;

&lt;p&gt; for(var x=myArray.length -1; x &amp;gt;= 0; x--){}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Sevush</dc:creator><pubDate>Wed, 17 Apr 2013 12:58:11 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-865898923</link><description>&lt;p&gt;sounds like either a jQuery incompatibility (have you included jQuery or have you included it more than once) or you haven't included the multiselect.js&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Backhouse</dc:creator><pubDate>Wed, 17 Apr 2013 07:42:38 -0000</pubDate></item><item><title>Re: jQuery UI MultiSelect Widget</title><link>http://www.erichynds.com/?p=832#comment-865112428</link><description>&lt;p&gt;if an option in checkbox is disabled and when I click on check all does it takes disabled one aswell?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vamshi</dc:creator><pubDate>Tue, 16 Apr 2013 09:13:17 -0000</pubDate></item></channel></rss>