<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated on Tue, 30 Sep 2008 18:50:31 -0500 -->
<rss version="2.0">
  <channel>    <title>Codeassembly - Simple chained combobox plugin for jQuery</title>
    <link>http://www.codeassembly.com/feed/comments/41</link>
    <description>CodeAssembly - Simplicity is prerequisite for reliability - Comments</description>
    <language>en-us</language>
    <managingEditor>contact@codeassembly.com</managingEditor>
    <webMaster>contact@codeassembly.com</webMaster>
    <generator>RSS Feed Generator</generator>
    <item>
      <title>Justin Kelly</title>
      <description>Hi,

first - thanks for the great plugin!!

1 problem:
- alls working fine until i tested on mobile browser (opera mini and ie on htc touch)
- the mini browser have a custom select box thing (like the iphone) and once you select an item in your select it doesn't seem to register 

you can test the demo page http://www.codeassembly.com/examples/jquerycombo/test.html in the online opera mini demo at http://www.operamini.com/demo/ to see what i mean

anyone know a solution to this??

any help would be greatly appreciated as i need to get my chained select working on these mobile browsers

Cheers

Justin</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#158</link>
      <pubDate>2008-09-13 03:42:08</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#158</guid>
    </item>
    <item>
      <title>Bob</title>
      <description>Running into another issue. I'm using this to pull states or provinces based on whether US or Canada is selected from the first dropdown. No problem, works as advertised. However, if the user submits the form and there are errors, when the page reloads, the states dropdown is not repopulated with the state they selected (assuming they selected one).

How do I get that working? I'm using CodeIgniter, fwiw, so I'm using their validation lib to display form errors.

Cheers,
Bob</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#149</link>
      <pubDate>2008-08-03 16:17:08</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#149</guid>
    </item>
    <item>
      <title>Codeassembly</title>
      <description>Try this.

jQuery(function($)
{
  $('#first_select_with_default_value').change();
});</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#146</link>
      <pubDate>2008-08-01 10:29:19</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#146</guid>
    </item>
    <item>
      <title>Neil Burton</title>
      <description>Great script!

I'm trying to set a default value so the second selection box appears at load rather than requiring user input, but it does not appear to work or I'm doing something wrong!

	$('#skillid').chainSelect('#subskillid','ajax.url',
	{ 
		before:function (target) //before request hide the target combobox and display the loading message
		{ 
			$("#loading").css("display","block");
			$(target).css("display","none");
		},
		after:function (target) //after request show the target combobox and hide the loading message
		{ 
			$("#loading").css("display","none");
			$(target).css("display","inline");
		},
		defaultValue:14
	});	


My HTML snippet is as follows
<select id="skillid"" name="skillid">
<option value="13">Skill A</option>
<option value="14">Skill B</option>
</select>
<select id="subskillid"" name="subskillid">
</select>

Any help would be appreciated!</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#144</link>
      <pubDate>2008-08-01 09:33:09</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#144</guid>
    </item>
    <item>
      <title>egemen</title>
      <description>thanks antonio..</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#134</link>
      <pubDate>2008-06-24 17:38:07</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#134</guid>
    </item>
    <item>
      <title>Wesley</title>
      <description>I am using the following library's

		<script type="text/javascript" src="/js/jquery.js"></script>
		<script type="text/javascript" src="/js/jquery.metadata.js"></script>
		<script type="text/javascript" src="/js/jquery.validate.js"></script>		
		<script type="text/javascript" src="/js/jquery.chainSelects.js"></script>		


The chainselects works fine on a page by itself, but when I combine with jquery and validate functionality it blows up &function undefined.

</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#133</link>
      <pubDate>2008-06-23 23:38:04</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#133</guid>
    </item>
    <item>
      <title>Antonio</title>
      <description>So.. if you want to get it working on FF,IE6 and IE7

jquery.chainedSelects.js >> Line 36:
36: parameters : { '_id' : $(this).attr('id'), '_name' : $(this).attr('name') },
37: } , settings);
Remove comma at the end:

IN THE END IT WILL LOOK LIKE:
parameters : { '_id' : $(this).attr('id'), '_name' : $(this).attr('name') }
37: } , settings);


AND CHANGE line 53 TO:

$(target).get(0).add(new Option(data[i][key],[key]), document.all ? i : null);

it works :)

</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#131</link>
      <pubDate>2008-06-17 06:24:15</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#131</guid>
    </item>
    <item>
      <title>Jimmy</title>
      <description>How would you load the 2 dropdown with data when page is loaded</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#128</link>
      <pubDate>2008-06-12 02:17:06</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#128</guid>
    </item>
    <item>
      <title>PK</title>
      <description>Same error as Derrick described - unexpected ';' in line 49 in jquery.chainSelect.js

Array in PHP looks like 

$array = array('1'=>'22','2'=>'222','3'=>'444','5'=>'666','7'=>'88888'); </description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#127</link>
      <pubDate>2008-06-08 12:30:51</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#127</guid>
    </item>
    <item>
      <title>Bob</title>
      <description>Nevermind, figured out what was going on. It was the way I was building the array.</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#124</link>
      <pubDate>2008-05-28 11:07:38</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#124</guid>
    </item>
    <item>
      <title>Bob</title>
      <description>I'm reading a directory of .mp3 files to create my second select list, but when I run the script I get this:

Error: invalid label
Source File: http://[mydomain].com/jquery.chainedSelects.js
Line: 48, Column: 4
Source Code:
{"0":["No Track"],"1":{"1":"23-29 Tick Tock Blues.mp3"},"2" .....
-----^

I can't for the life of me figure out why json_encode($array) would place square brackets around the first item, and curly brackets around the rest. Thoughts?</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#123</link>
      <pubDate>2008-05-22 19:32:27</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#123</guid>
    </item>
    <item>
      <title>Solomon</title>
      <description>Hi

I have a JSP page which has 6 combo boxes.When i select a value in the first combo the other 5 will filter with values which is done using AJAX. Now the problem is if the value i selected in the first combo has a size say 50 the screen looks very bad with scroll bars on both sides....All the combos size varies according to the value selected in first one....

Can anyone give an idea to have all the combo boxes sizes fixed irrespective of how the AJAX fires.</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#112</link>
      <pubDate>2008-05-20 08:13:34</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#112</guid>
    </item>
    <item>
      <title>Derrick</title>
      <description>As soon as I try loop one of these: 

    $array[] = array('1' => 'New York');

with something like:

    foreach($count=1; $count=3; $count++)
    {
	$array[] = array($count => '$count');
    }

I get this firebug error:

<b>Parse error</b>: syntax error, unexpected ';' in <b>F:\server2\Apache Group\... line 49 in jquery.chainSelect.js</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#108</link>
      <pubDate>2008-05-03 18:41:06</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#108</guid>
    </item>
    <item>
      <title>Radek</title>
      <description>To make it work on IE:

jquery.chainedSelects.js >> Line 36:
36: parameters : { '_id' :  $(this).attr('id'), '_name' : $(this).attr('name') },
37: } , settings);
Remove comma at the end:

parameters : { '_id' :  $(this).attr('id'), '_name' : $(this).attr('name') }
37: } , settings);</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#107</link>
      <pubDate>2008-05-01 14:21:24</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#107</guid>
    </item>
    <item>
      <title>radek</title>
      <description>
Doesn't work for me in IE 7. With 

$(target).get(0).add(new Option(data[i][key],[key]), document.all ? i : null);
i get
"object does not accept this property or method."
on  line 	$('#country').chainSelect('#state','/examples/jquerycombo/combobox.php',
</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#106</link>
      <pubDate>2008-05-01 14:23:33</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#106</guid>
    </item>
    <item>
      <title>Mike</title>
      <description>Thanks Remy. The following tweak of your code works for me in FF, IE7, IE6 & Saf3:

$(target).get(0).add(new Option(data[i][key],[key]), document.all ? i : null);</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#102</link>
      <pubDate>2008-04-23 03:28:00</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#102</guid>
    </item>
    <item>
      <title>mere56</title>
      <description>No! Its not working in IE!</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#98</link>
      <pubDate>2008-04-16 11:10:34</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#98</guid>
    </item>
    <item>
      <title>Mariano</title>
      <description>Remy: Works here in ie 7 (thanks!). In ie 6, almost: the first select triggers ok, but when you click the 2nd or 3rd select you get a "object does not accept this property or method" (translation from spanish, so may be innacurate. The error is referring to a jquery method, not this script.</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#97</link>
      <pubDate>2008-05-01 14:22:23</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#97</guid>
    </item>
    <item>
      <title>Remy</title>
      <description>Ok, I have been following this and have had a couple of issues, I stripped down my production environment to the bare essentials and ran my scripts in FF and IE7. I had no problems with FF and Firebug helped immensely. IE would not play ball, even though I had tried glenn's code (which incidentally precludes FF). 

I have been doing a bit of digging around and looked at other jQuery options for modifying the select list. The following line has been verified on IE7 and Firefox 2 and I have used it in place of Glenn's solution. I would be interested to hear how this works in IE6.

$(target).get(0).add(new Option(data[i][key],[key]),document.all ? 0 : null);	

This was found via an article on Dr Dobb's Journal (http://www.ddj.com/java/201000935?pgno=4)

Kudos to the author!</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#96</link>
      <pubDate>2008-05-01 14:21:24</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#96</guid>
    </item>
    <item>
      <title>Mariano</title>
      <description>Doesn't work for me in IE 7. With 
$(target).append(""+data[i][key]+""); and stuff I only get empty selects tags...</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#94</link>
      <pubDate>2008-05-01 14:22:23</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#94</guid>
    </item>
    <item>
      <title>Remy</title>
      <description>When I try using this I get a page error: expected ";"

I know my JSON is well formed and have even tried to force a semi-colon in just to see and the results are the same. I also can't get the demo to work? I don't see a script error but the effect is the same, select an option and the other select boxes are made visible but with no members? I have tried IE7/Firefox.</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#93</link>
      <pubDate>2008-05-01 14:22:23</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#93</guid>
    </item>
    <item>
      <title>Tekin</title>
      <description>IE6 fixed but IE7 problem continue :(</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#92</link>
      <pubDate>2008-04-09 08:52:47</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#92</guid>
    </item>
    <item>
      <title>glenn</title>
      <description>It seems my previous posting didn't correctly arrive:

This is the line you need to use to get results in IE:

<code>
$(target).append("<option value="+key+">"+data[i][key]+"</option>");
</code>
<br/>

Replace all in the inner for loop with this line.

Btw, I really like this implementation, the size of the plugin is also heaven and I'm a big fan of php/jquery combo.  This was right up my alley and it's being used in a production site as wel speak.

Thanks codeassembly.  If you need some help with finetuning this let me know.

</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#89</link>
      <pubDate>2008-03-21 13:46:36</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#89</guid>
    </item>
    <item>
      <title>glenn</title>
      <description>Hi,

For those who have trouble getting this in IE6 to work:

replace:

//option = document.createElement("OPTION");//create a new option
//option.value = key;//set option value  
//option.text = data[i][key];
//$(target).append(option); //insert the option into the select

With :
//insert the option into the select
$(target).append("<option value="+key+">"+data[i][key]+"</option>"); 

There is something up with passing the .text attribute to the way it's constructed here.  for some reason it does't work in IE and I cant be bothered to find out how to access the dom there.  I could tell in FF that it was working.

For any cache issues perhaps you could also change the parameter line to this one:

 parameters = { '_id' : $(this).attr('id'), '_name' : $(this).attr('name'), '_value' : $(this).val() , 'rrand' : Math.random()
};

As such it will not cache the request as some IE's don't even listen to the ajax global options.

Hope this helps some people here.

Glenn</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#88</link>
      <pubDate>2008-03-21 13:42:16</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#88</guid>
    </item>
    <item>
      <title>abdullah</title>
      <description>"json_encode" this below :

<?php

function json_encode($dizi) {
  $veri = '[' . implode(',', $dizi) . ']';
  return $veri;
}

?></description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#81</link>
      <pubDate>2008-03-21 14:02:43</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#81</guid>
    </item>
    <item>
      <title>Marçal</title>
      <description>Hi again,

I have changed the following plugin script line:


$(target).append(option);//insert the option into the select



with this other one

$(target).append('<OPTION VALUE='+key+'>'+data[i][key]+'</OPTION>');//insert the option into the select 

and now the script works also in IE. 

I hope this help somebody ;)



</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#75</link>
      <pubDate>2008-03-21 14:02:43</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#75</guid>
    </item>
    <item>
      <title>Marçal</title>
      <description>Hi, 

congratulations for your script, is very usefull. But i didn't get it work under IExplorer, just in Firefox.

I'm trying to make it work under IE, if someone have already done it please let me know.

Thanks.</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#74</link>
      <pubDate>2008-03-21 14:02:43</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#74</guid>
    </item>
    <item>
      <title>apadley</title>
      <description>Sorry, I see that json_encode is PHP 5</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#73</link>
      <pubDate>2008-02-25 12:04:44</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#73</guid>
    </item>
    <item>
      <title>apadley</title>
      <description>I've installed the plugin, but get the following error:

Call to undefined function: json_encode()

I'd like to get this working.</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#72</link>
      <pubDate>2008-03-21 14:02:43</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#72</guid>
    </item>
    <item>
      <title>CodeAssembly</title>
      <description>I'm glad you liked it. I updated the example, it now displays a "Loading ..." div while fetching data. You can replace the div with a spinner gif.

</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#69</link>
      <pubDate>2008-02-12 13:14:04</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#69</guid>
    </item>
    <item>
      <title>josoroma</title>
      <description>Hi!

Im a jquery newbie, but i test your plugin and is an easy and perfect piece of art. Great work!

I was wondering how can i add a spinner gif while the data is obtained for the new select?

Thanks in advance.</description>
      <link>http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#68</link>
      <pubDate>2008-02-09 17:57:51</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/#68</guid>
    </item>
  </channel></rss>