<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Degradable PHP/AJAX forms</title>
	<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms/</link>
	<description>Comments on Ask MetaFilter post Degradable PHP/AJAX forms</description>
	<pubDate>Fri, 17 Mar 2006 06:29:49 -0800</pubDate>
	<lastBuildDate>Fri, 17 Mar 2006 06:29:49 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Degradable PHP/AJAX forms</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms</link>	
		<description>PHP/AJAX: Say I have a form with 3 SELECT&apos;s - country, state/province, city. I&apos;m looking for a something that will update the SELECT&apos;s from the server using AJAX if possible, but will also degrade to the non-AJAX version for people that have JavaScript disabled. Can anyone recommend a PHP library that can do that?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.34531</guid>
		<pubDate>Fri, 17 Mar 2006 06:23:40 -0800</pubDate>
		<dc:creator>Sharcho</dc:creator>
		
			<category>ajax</category>
		
			<category>php</category>
		
			<category>javascript</category>
		
			<category>unobtrusive</category>
		
			<category>accessible</category>
		
			<category>forms</category>
		
	</item> <item>
		<title>By: orthogonality</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms#538363</link>	
		<description>Since you are (wisely) including all possible values in case the user doesn&apos;t enable javascript, why do you need to AJAX back to the server if the user does enable it?&lt;br&gt;
&lt;br&gt;
Just include javascript on the page to select (or limit) the values you want (or want to hide).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34531-538363</guid>
		<pubDate>Fri, 17 Mar 2006 06:29:49 -0800</pubDate>
		<dc:creator>orthogonality</dc:creator>
	</item><item>
		<title>By: Sharcho</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms#538366</link>	
		<description>It isn&apos;t possible to include all the possible values in the HTML/JavaScript, let&apos;s say there are 100000 cities. So if JavaScript isn&apos;t enabled, it needs fill the form in several stages .</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34531-538366</guid>
		<pubDate>Fri, 17 Mar 2006 06:34:31 -0800</pubDate>
		<dc:creator>Sharcho</dc:creator>
	</item><item>
		<title>By: empath</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms#538371</link>	
		<description>I think &lt;a href=&quot;http://www.developer.com/services/article.php/10928_3575081_1&quot;&gt;this&lt;/a&gt; should be helpful.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34531-538371</guid>
		<pubDate>Fri, 17 Mar 2006 06:43:13 -0800</pubDate>
		<dc:creator>empath</dc:creator>
	</item><item>
		<title>By: Sharcho</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms#538378</link>	
		<description>empath, I&apos;m looking for something for PHP not ASP.NET, and I think that the solution proposed in the article won&apos;t work if JavaScript isn&apos;t enabled.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34531-538378</guid>
		<pubDate>Fri, 17 Mar 2006 06:56:02 -0800</pubDate>
		<dc:creator>Sharcho</dc:creator>
	</item><item>
		<title>By: cillit bang</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms#538386</link>	
		<description>I don&apos;t see why you&apos;d need a library to do this. Set up the HTML form to only include the Country selector, then use Javascript (if it&apos;s enabled) to insert the state/city selector and run the AJAX gubbins. Then in the PHP script that processes the form, check if state (etc) has been chosen, and if not ask the user to choose one then. Very simple.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34531-538386</guid>
		<pubDate>Fri, 17 Mar 2006 07:05:51 -0800</pubDate>
		<dc:creator>cillit bang</dc:creator>
	</item><item>
		<title>By: scottreynen</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms#538422</link>	
		<description>Yeah, you&apos;re not going to find a library for such a specific problem. First, create a form that works with no JavaScript (e.g. get city by input rather than select). Then add JavaScript where appropriate (e.g. replace city input with auto-filled select when state is chosen).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34531-538422</guid>
		<pubDate>Fri, 17 Mar 2006 07:41:26 -0800</pubDate>
		<dc:creator>scottreynen</dc:creator>
	</item><item>
		<title>By: Sharcho</title>
		<link>http://ask.metafilter.com/34531/Degradable-PHPAJAX-forms#539254</link>	
		<description>I found an example for how to do degradable AJAX forms &lt;a href=&quot;http://www.metz.se/tinyajax/examples/ajaxify2.php&quot;&gt;here&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34531-539254</guid>
		<pubDate>Sat, 18 Mar 2006 05:43:35 -0800</pubDate>
		<dc:creator>Sharcho</dc:creator>
	</item>
	</channel>
</rss>
