<?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>Comments on: Facebook Like Auto-Suggestion Text Field</title>
	<atom:link href="http://blog.lokamaya.net/code-javascript/facebook-like-compose-field/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.lokamaya.net/code-javascript/facebook-like-compose-field</link>
	<description>Menjelajahi Dunia Maya</description>
	<lastBuildDate>Tue, 08 Nov 2011 11:46:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zaenal</title>
		<link>http://blog.lokamaya.net/code-javascript/facebook-like-compose-field/comment-page-1#comment-154</link>
		<dc:creator>Zaenal</dc:creator>
		<pubDate>Tue, 25 Jan 2011 08:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lokamaya.net/?p=202#comment-154</guid>
		<description>Hi Jhonatan,

1#
In the example (download archieve), I use &quot;compose_to.php&quot; to generate xml. You can edit that file or create a new &quot;cities.php&quot; file, where you can manipulate data from database. Don&#039;t forget to change &lt;em&gt;Options.script&lt;/em&gt; when initiating AutoField in the main file (index.php)
&lt;code&gt;Event.observe(window, &#039;load&#039;, function() {new AutoField(&#039;compose_to&#039;, {script:&#039;cities.php&#039;, delay:10})});&lt;/code&gt;

2#
By default, AutoField will cache the result (xml) from ajax query. To disable this option, just add &quot;cache:false&quot; to the line of javascript mentioned above
&lt;code&gt;Event.observe(window, &#039;load&#039;, function() {new AutoField(&#039;compose_to&#039;, {script:&#039;cities.php&#039;, delay:10, cache:false})});&lt;/code&gt;

3#
Considering it&#039;s a list of cities: do you require others input? whether it&#039;s country, state, or both. Unfortunately AutoField does not have such features. It will need little tweak to the main script (javascript/autofield.js).

Best,</description>
		<content:encoded><![CDATA[<p>Hi Jhonatan,</p>
<p>1#<br />
In the example (download archieve), I use &#8220;compose_to.php&#8221; to generate xml. You can edit that file or create a new &#8220;cities.php&#8221; file, where you can manipulate data from database. Don&#8217;t forget to change <em>Options.script</em> when initiating AutoField in the main file (index.php)<br />
<code>Event.observe(window, 'load', function() {new AutoField('compose_to', {script:'cities.php', delay:10})});</code></p>
<p>2#<br />
By default, AutoField will cache the result (xml) from ajax query. To disable this option, just add &#8220;cache:false&#8221; to the line of javascript mentioned above<br />
<code>Event.observe(window, 'load', function() {new AutoField('compose_to', {script:'cities.php', delay:10, cache:false})});</code></p>
<p>3#<br />
Considering it&#8217;s a list of cities: do you require others input? whether it&#8217;s country, state, or both. Unfortunately AutoField does not have such features. It will need little tweak to the main script (javascript/autofield.js).</p>
<p>Best,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jhonatan</title>
		<link>http://blog.lokamaya.net/code-javascript/facebook-like-compose-field/comment-page-1#comment-153</link>
		<dc:creator>Jhonatan</dc:creator>
		<pubDate>Tue, 25 Jan 2011 02:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lokamaya.net/?p=202#comment-153</guid>
		<description>Very straightforward and clean. Thank you for sharing!

One challenge: how should I go about replacing the xml array with a php database connection? My list is considerably long (cities worldwide) and dynamic, it would be counterproductive to download the xml periodically. 

Any thoughts?

Thanks</description>
		<content:encoded><![CDATA[<p>Very straightforward and clean. Thank you for sharing!</p>
<p>One challenge: how should I go about replacing the xml array with a php database connection? My list is considerably long (cities worldwide) and dynamic, it would be counterproductive to download the xml periodically. </p>
<p>Any thoughts?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zaenal</title>
		<link>http://blog.lokamaya.net/code-javascript/facebook-like-compose-field/comment-page-1#comment-87</link>
		<dc:creator>Zaenal</dc:creator>
		<pubDate>Fri, 26 Mar 2010 06:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lokamaya.net/?p=202#comment-87</guid>
		<description>My pleasure. I just modified Antonio Ramirez (Webeater) &#039;s works and shared it here.</description>
		<content:encoded><![CDATA[<p>My pleasure. I just modified Antonio Ramirez (Webeater) &#8216;s works and shared it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duniyadnd</title>
		<link>http://blog.lokamaya.net/code-javascript/facebook-like-compose-field/comment-page-1#comment-86</link>
		<dc:creator>Duniyadnd</dc:creator>
		<pubDate>Thu, 25 Mar 2010 20:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lokamaya.net/?p=202#comment-86</guid>
		<description>This is a great script! :) Very consistent. Thank you for putting it up.</description>
		<content:encoded><![CDATA[<p>This is a great script! :) Very consistent. Thank you for putting it up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

