<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：json2select</title>
	<atom:link href="http://shawphy.com/2008/12/json2select.html/feed" rel="self" type="application/rss+xml" />
	<link>http://shawphy.com/2008/12/json2select.html</link>
	<description>关注HTML,CSS,JavaScript,jQuery等前端开发</description>
	<lastBuildDate>Wed, 08 Sep 2010 06:07:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>由：JQuery无限联动的下拉框插件（选城市） &#124; Fatkun&#39;s Blog</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4244</link>
		<dc:creator>JQuery无限联动的下拉框插件（选城市） &#124; Fatkun&#39;s Blog</dc:creator>
		<pubDate>Fri, 28 May 2010 08:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4244</guid>
		<description>[...] HTML转义关于Fatkun&#039;s Blog胡言乱语~不说谎，不打架，好孩子！ function doApi(obj) { var taotao = document.getElementById(&quot;taotao&quot;); if (obj.ret != 0) { taotao.innerHTML = &quot;看,有灰机...QQ签名加载失败鸟&quot;; return; } taotao.innerHTML = obj.posts[0].cn; }  JQuery无限联动的下拉框插件（选城市） 28 五, 2010 in 网页前端 by fatkun经常可能会用到一些需要联动的下拉框，包括选择城市之类的。可能是二级联动，三级联动等等~JQuery中有个双联动的doubleselect，不过有时我们需要很多个下拉框一起关联。发现一个国内的jquery插件，感觉不错，中国地名压缩后最小可以达到29KB。以后很有可能会用到，记录下来先博客介绍：http://shawphy.com/2008/12/json2select.html例子：http://shawphy.googlecode.com/svn/javascript/json2select/json2select.html全国城市数据：http://shawphy.com/2009/07/json2select-data-of-city.html压缩后全国城市数据：http://www.cnweb.org/down/areajson/  0&#160;Commentstagged json, option, select, 三级联动Leave a Reply 点击这里取消回复 Name (required) Mail (will not be published) (required) Website [...]</description>
		<content:encoded><![CDATA[<p>[...] HTML转义关于Fatkun&#39;s Blog胡言乱语~不说谎，不打架，好孩子！ function doApi(obj) { var taotao = document.getElementById(&quot;taotao&quot;); if (obj.ret != 0) { taotao.innerHTML = &quot;看,有灰机&#8230;QQ签名加载失败鸟&quot;; return; } taotao.innerHTML = obj.posts[0].cn; }  JQuery无限联动的下拉框插件（选城市） 28 五, 2010 in 网页前端 by fatkun经常可能会用到一些需要联动的下拉框，包括选择城市之类的。可能是二级联动，三级联动等等~JQuery中有个双联动的doubleselect，不过有时我们需要很多个下拉框一起关联。发现一个国内的jquery插件，感觉不错，中国地名压缩后最小可以达到29KB。以后很有可能会用到，记录下来先博客介绍：http://shawphy.com/2008/12/json2select.html例子：http://shawphy.googlecode.com/svn/javascript/json2select/json2select.html全国城市数据：http://shawphy.com/2009/07/json2select-data-of-city.html压缩后全国城市数据：http://www.cnweb.org/down/areajson/  0&nbsp;Commentstagged json, option, select, 三级联动Leave a Reply 点击这里取消回复 Name (required) Mail (will not be published) (required) Website [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Noker</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4243</link>
		<dc:creator>Noker</dc:creator>
		<pubDate>Wed, 26 May 2010 02:23:17 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4243</guid>
		<description>昨天有幸终于用上这个插件了，发现些实际中可能遇到的问题，所以有些地方小改了下，你看看合理否：
$(&quot;[name=&quot;+name+deep+&quot;]&quot;,_this).nextAll().remove();
改为：
$(&quot;[name=&quot;+name+deep+&quot;]&quot;,_this).nextAll(&quot;select&quot;).remove();
主要是避免级联选单后面放东西的时候，后面的无关东西也遭移除。

$(this).val()&amp;&amp;_this.json2select($(&quot;:selected&quot;,this).data(&quot;s&quot;),dftFlag?dft.slice(1):[],name,$(this).attr(&quot;name&quot;).match(/\d+/)[0]);
改为：
$(this).val()?_this.json2select($(&quot;:selected&quot;,this).data(&quot;s&quot;),dftFlag?dft.slice(1):[],name,$(this).attr(&quot;name&quot;).match(/\d+/)[0]):$(this).nextAll(&quot;select&quot;).remove();
主要是解决当一级select改为“请选择”时，后面select依然存在的逻辑问题，改后某级的select选为“请选择”后后续的select一律移除。</description>
		<content:encoded><![CDATA[<p>昨天有幸终于用上这个插件了，发现些实际中可能遇到的问题，所以有些地方小改了下，你看看合理否：<br />
$(&#8220;[name="+name+deep+"]&#8220;,_this).nextAll().remove();<br />
改为：<br />
$(&#8220;[name="+name+deep+"]&#8220;,_this).nextAll(&#8220;select&#8221;).remove();<br />
主要是避免级联选单后面放东西的时候，后面的无关东西也遭移除。</p>
<p>$(this).val()&amp;&amp;_this.json2select($(&#8220;:selected&#8221;,this).data(&#8220;s&#8221;),dftFlag?dft.slice(1):[],name,$(this).attr(&#8220;name&#8221;).match(/\d+/)[0]);<br />
改为：<br />
$(this).val()?_this.json2select($(&#8220;:selected&#8221;,this).data(&#8220;s&#8221;),dftFlag?dft.slice(1):[],name,$(this).attr(&#8220;name&#8221;).match(/\d+/)[0]):$(this).nextAll(&#8220;select&#8221;).remove();<br />
主要是解决当一级select改为“请选择”时，后面select依然存在的逻辑问题，改后某级的select选为“请选择”后后续的select一律移除。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Shawphy</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4016</link>
		<dc:creator>Shawphy</dc:creator>
		<pubDate>Sun, 07 Mar 2010 08:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4016</guid>
		<description>非常感谢你的反馈，看起来确实有这个问题</description>
		<content:encoded><![CDATA[<p>非常感谢你的反馈，看起来确实有这个问题</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：mikokuu</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-3567</link>
		<dc:creator>mikokuu</dc:creator>
		<pubDate>Tue, 23 Feb 2010 08:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-3567</guid>
		<description>你好喔, 你这个工具偶一直在用, 很好用! 很感谢!
但是之前使用时发现好像有点小问题, 在设置有默认值的时候, 如果直接把第一级改变成&quot;请选择&quot;, 后面的几个下拉框也不会被清空. 需要在slct.change里的最前面加上一句$(this).nextAll().remove();才可以解决问题.</description>
		<content:encoded><![CDATA[<p>你好喔, 你这个工具偶一直在用, 很好用! 很感谢!<br />
但是之前使用时发现好像有点小问题, 在设置有默认值的时候, 如果直接把第一级改变成&#8221;请选择&#8221;, 后面的几个下拉框也不会被清空. 需要在slct.change里的最前面加上一句$(this).nextAll().remove();才可以解决问题.</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：q</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-3470</link>
		<dc:creator>q</dc:creator>
		<pubDate>Wed, 10 Feb 2010 16:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-3470</guid>
		<description>* @param deep,整形数字，默认值：0，用于设置初始的深度，如设置为0，
 *				则第一个select的name属性就是sel0,第二个就是sel1,接着sel2,sel3,sel4以此排下去。

在这个看明白了，原来选择的名字由上面的sel0，sel1，sel2！非常感谢！！！</description>
		<content:encoded><![CDATA[<p>* @param deep,整形数字，默认值：0，用于设置初始的深度，如设置为0，<br />
 *				则第一个select的name属性就是sel0,第二个就是sel1,接着sel2,sel3,sel4以此排下去。</p>
<p>在这个看明白了，原来选择的名字由上面的sel0，sel1，sel2！非常感谢！！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Shawphy</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-1130</link>
		<dc:creator>Shawphy</dc:creator>
		<pubDate>Sat, 15 Aug 2009 15:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-1130</guid>
		<description>呵呵，以后有缘你自会看得懂~若要不懂也不必强求~~</description>
		<content:encoded><![CDATA[<p>呵呵，以后有缘你自会看得懂~若要不懂也不必强求~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：张永辉</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-1127</link>
		<dc:creator>张永辉</dc:creator>
		<pubDate>Thu, 13 Aug 2009 11:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-1127</guid>
		<description>老大，这到底是干什么的啊？</description>
		<content:encoded><![CDATA[<p>老大，这到底是干什么的啊？</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：json2select的全国城市数据 &#124; 走走停停看看</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-1036</link>
		<dc:creator>json2select的全国城市数据 &#124; 走走停停看看</dc:creator>
		<pubDate>Tue, 28 Jul 2009 11:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-1036</guid>
		<description>[...] 去年写过一个小插件，json2select 一直想要转换出配套的数据，但总有这样那样的问题之后，终于拖到了现在。 好在一切悲剧的日子已经过去了，新时代已经来临。猛击这里 三级联动，直辖市精确到城镇街道，一般城市到达区。强烈推荐。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 去年写过一个小插件，json2select 一直想要转换出配套的数据，但总有这样那样的问题之后，终于拖到了现在。 好在一切悲剧的日子已经过去了，新时代已经来临。猛击这里 三级联动，直辖市精确到城镇街道，一般城市到达区。强烈推荐。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：flymichael</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-360</link>
		<dc:creator>flymichael</dc:creator>
		<pubDate>Sun, 11 Jan 2009 11:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-360</guid>
		<description>生成的联动都是横向的，怎么变成纵向的？</description>
		<content:encoded><![CDATA[<p>生成的联动都是横向的，怎么变成纵向的？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
