<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>.: RockIT :.</title>
	<atom:link href="http://rubens.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubens.wordpress.com</link>
	<description>Just another way to rock IT</description>
	<pubDate>Sun, 02 Sep 2007 14:34:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language></language>
			<item>
		<title>simple scriptaculous  Autocomplete with DWR &#38; select - Boxes</title>
		<link>http://rubens.wordpress.com/2006/02/09/ajax-autocomplete-with-dwr/</link>
		<comments>http://rubens.wordpress.com/2006/02/09/ajax-autocomplete-with-dwr/#comments</comments>
		<pubDate>Thu, 09 Feb 2006 10:21:23 +0000</pubDate>
		<dc:creator>rubens</dc:creator>
		
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://rubens.wordpress.com/2006/02/09/ajax-autocomplete-with-dwr/</guid>
		<description><![CDATA[coming across this really nice scriptaculous autocomplete feature on
http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local

i wanted a simple solution to use this Function. I&#8217;m using DWRUtil.addOptions to fill my select boxes with values. These selectBoxes already serve as proposal-Values for the correlating Input-Fields. So i had all the data needed to create a nice type-ahead  system, without performance - impact, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>coming across this really nice scriptaculous autocomplete feature on</p>
<p><a href="http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local" title="Autocomplete" target="_blank">http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local</a></p>
<p><img src="http://static.flickr.com/21/96413804_5d50a27e53.jpg?v=0" alt="Autocomplete" /></p>
<p>i wanted a simple solution to use this Function. I&#8217;m using DWRUtil.addOptions to fill my select boxes with values. These selectBoxes already serve as proposal-Values for the correlating Input-Fields. So i had all the data needed to create a nice type-ahead  system, without performance - impact, already loaded onto the page.</p>
<p>i&#8217;d didn&#8217;t want an Ajax - request to be sent out each time the user types in a letter. So the only thing i needed to do was to parse the data provided in the select box and give it to the Autocompleter.local. For that purpose i created a simple javascript function named &#8220;genAutocomplete&#8221; that is being called after the DWRUtil.addOptions.</p>
<p>// configGroupSelect: the select box filled by DWRUtil.addOptions</p>
<p>// configGroup the input field, filled by the autocomplete</p>
<p>// config_list the div-id with the suggested values</p>
<p>function genAutocomplete(){</p>
<p>var mySelect= document.getElementById(&#8217;configGroupSelect&#8217;);</p>
<p>var i;</p>
<p>var resultArray=new Array();<br />
for (i=0; i &lt; mySelect.options.length; i++) {<br />
resultArray[i] =mySelect.options[i].value;<br />
}</p>
<p>new Autocompleter.Local(&#8217;configGroup&#8217;, &#8216;config_list&#8217;, resultArray, {});</p>
<p>}</p>
<p>Rubén Parés-Selders</p>
<p><i> </i></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rubens.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rubens.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rubens.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rubens.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rubens.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rubens.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rubens.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rubens.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rubens.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rubens.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rubens.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rubens.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rubens.wordpress.com&blog=71827&post=3&subd=rubens&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rubens.wordpress.com/2006/02/09/ajax-autocomplete-with-dwr/feed/</wfw:commentRss>
	
		<media:content url="http://static.flickr.com/21/96413804_5d50a27e53.jpg?v=0" medium="image">
			<media:title type="html">Autocomplete</media:title>
		</media:content>
	</item>
	</channel>
</rss>