<?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"
	>
<channel>
	<title>Comments on: Text Field Auto-Fill</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/</link>
	<description></description>
	<pubDate>Thu, 28 Aug 2008 14:56:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: joatBlog</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11781</link>
		<dc:creator>joatBlog</dc:creator>
		<pubDate>Tue, 22 Jun 2004 10:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11781</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Fill/clear forms&lt;/strong&gt;
Scripty Goddes shows how to pre-fill a field entry and how to auto-clear it if the user clicks on the field....</description>
		<content:encoded><![CDATA[<trackback /><strong>Fill/clear forms</strong><br />
Scripty Goddes shows how to pre-fill a field entry and how to auto-clear it if the user clicks on the field&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Code Novice</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11162</link>
		<dc:creator>Code Novice</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11162</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Scripty's Text Area Twofer&lt;/strong&gt;
I'm creating a proposal for a possible corporate client and...
</description>
		<content:encoded><![CDATA[<trackback /><strong>Scripty&#8217;s Text Area Twofer</strong><br />
I&#8217;m creating a proposal for a possible corporate client and&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blogroll.co.uk</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11161</link>
		<dc:creator>blogroll.co.uk</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11161</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Tweak&lt;/strong&gt;
Using a piece of code posted to Scripty Godesses page, I now have the Search bar in the top right a little more compact than it was ... not a big tweak, but cool non the less....</description>
		<content:encoded><![CDATA[<trackback /><strong>Tweak</strong><br />
Using a piece of code posted to Scripty Godesses page, I now have the Search bar in the top right a little more compact than it was &#8230; not a big tweak, but cool non the less&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blogroll.co.uk</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11160</link>
		<dc:creator>blogroll.co.uk</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11160</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Tweak&lt;/strong&gt;
Using a piece of code posted to Scripty Godesses page, I now have the Search bar in the top right a little more compact than it was ... not a big tweak, but cool non the less....</description>
		<content:encoded><![CDATA[<trackback /><strong>Tweak</strong><br />
Using a piece of code posted to Scripty Godesses page, I now have the Search bar in the top right a little more compact than it was &#8230; not a big tweak, but cool non the less&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11156</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11156</guid>
		<description>So this works great but how do I adapt it to work on a text area?

I need the multi line text area to have the "Message:" disappear when you click into that area. I want it to be consistent with the other form elements that I have established.</description>
		<content:encoded><![CDATA[<p>So this works great but how do I adapt it to work on a text area?</p>
<p>I need the multi line text area to have the &#8220;Message:&#8221; disappear when you click into that area. I want it to be consistent with the other form elements that I have established.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11157</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11157</guid>
		<description>So this works great but how do I adapt it to work on a text area?

I need the multi line text area to have the "Message:" disappear when you click into that area. I want it to be consistent with the other form elements that I have established.</description>
		<content:encoded><![CDATA[<p>So this works great but how do I adapt it to work on a text area?</p>
<p>I need the multi line text area to have the &#8220;Message:&#8221; disappear when you click into that area. I want it to be consistent with the other form elements that I have established.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11158</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11158</guid>
		<description>It's slightly different with a textarea, because the default value isn't specified in a &lt;i&gt;value="Message:"&lt;/i&gt; switch, but is actually between the starting and ending textarea tags.  So this is what you want.
&lt;blockquote&gt;&#60;textarea name="text" onFocus="if(this.value==this.defaultValue)value=''" onBlur="if(this.value=='')value=this.defaultValue;"&#62;Message:&#60;/textarea&#62;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>It&#8217;s slightly different with a textarea, because the default value isn&#8217;t specified in a <i>value=&#8221;Message:&#8221;</i> switch, but is actually between the starting and ending textarea tags.  So this is what you want.</p>
<blockquote><p>&lt;textarea name=&#8221;text&#8221; onFocus=&#8221;if(this.value==this.defaultValue)value=&#8221;&#8221; onBlur=&#8221;if(this.value==&#8221;)value=this.defaultValue;&#8221;&gt;Message:&lt;/textarea&gt;</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11159</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11159</guid>
		<description>Actually, I just discovered that the &lt;b&gt;this.defaultValue&lt;/b&gt; method works for text inputs as well.  You still have to specify a &lt;b&gt;value="Search"&lt;/b&gt; switch, but instead of having to specify it 3 times like in Jenn's original method, you only have specify it as the &lt;b&gt;value&lt;/b&gt; once.

Like so:

&lt;blockquote&gt;&#60;input name="search" type="text" onfocus="if(this.value==this.defaultValue)value=''" onblur="if(this.value=='')value=this.defaultValue;" value="Search" size="10" maxlength="200"&#62;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Actually, I just discovered that the <b>this.defaultValue</b> method works for text inputs as well.  You still have to specify a <b>value=&#8221;Search&#8221;</b> switch, but instead of having to specify it 3 times like in Jenn&#8217;s original method, you only have specify it as the <b>value</b> once.</p>
<p>Like so:</p>
<blockquote><p>&lt;input name=&#8221;search&#8221; type=&#8221;text&#8221; onfocus=&#8221;if(this.value==this.defaultValue)value=&#8221;&#8221; onblur=&#8221;if(this.value==&#8221;)value=this.defaultValue;&#8221; value=&#8221;Search&#8221; size=&#8221;10&#8243; maxlength=&#8221;200&#8243;&gt;</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nancy</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11155</link>
		<dc:creator>Nancy</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11155</guid>
		<description>Funny thing...
When I add name and id attributes to my input field like this:

&#60;input type="text" onfocus="if(this.value=='url')value='';" onblur="if(this.value=='')value='url';" value="url" &lt;b&gt;id="url" name="url"&lt;/b&gt;/&#62;

the onfocus and onblur only work after I click in the field
Any ideas why? I've tried everything!</description>
		<content:encoded><![CDATA[<p>Funny thing&#8230;<br />
When I add name and id attributes to my input field like this:</p>
<p>&lt;input type=&#8221;text&#8221; onfocus=&#8221;if(this.value==&#8217;url&#8217;)value=&#8221;;&#8221; onblur=&#8221;if(this.value==&#8221;)value=&#8217;url&#8217;;&#8221; value=&#8221;url&#8221; <b>id=&#8221;url&#8221; name=&#8221;url&#8221;</b>/&gt;</p>
<p>the onfocus and onblur only work after I click in the field<br />
Any ideas why? I&#8217;ve tried everything!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julie W</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11154</link>
		<dc:creator>Julie W</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/01/text-field-auto-fill/#comment-11154</guid>
		<description>OK. Confession time here: I've never written a script in my life, but I am a computer-literate user of a system that's under construction where we'd really like to be able to have a combi box (i.e. something you can type into that ALSO drops down, preferably showing just those items in the drop down list that match what's already been typed - though frankly, the string matching part of it would be a bonus).

If it helps to understand what we're after, it's an order processing system, and the idea is to be able to type a product code if you know it (in which case the product description then gets added to a separate box), but have a dropdown list of options to choose from if you don't know the product code or can only guess at part of it.  As an extra challenge, ideally the dropdown list would display both the code and the description field (but only select the code to fill in the code box).  

At the moment, we have a text entry box.  If the script finds an exact match to the product code entered by the user, it fills in the description in another (editable) text box.  Otherwise it populates new drop down boxes with items that contain the text either in the product code or the description, which is somewhat clumsy, and then the product code can be selected from these, and the description filled in on the Product Description text box as before.  (NB: The code and description are held separately because customers never get to see the product code, but we use it internally for sales reports.)

So, I was very interested in Xipoher's comment above "You could combine this with a dropdown box and that would make it a editable dropdownbox".  How would you do this?  I've been searching the web for ages now to find a way to do it with no success.</description>
		<content:encoded><![CDATA[<p>OK. Confession time here: I&#8217;ve never written a script in my life, but I am a computer-literate user of a system that&#8217;s under construction where we&#8217;d really like to be able to have a combi box (i.e. something you can type into that ALSO drops down, preferably showing just those items in the drop down list that match what&#8217;s already been typed - though frankly, the string matching part of it would be a bonus).</p>
<p>If it helps to understand what we&#8217;re after, it&#8217;s an order processing system, and the idea is to be able to type a product code if you know it (in which case the product description then gets added to a separate box), but have a dropdown list of options to choose from if you don&#8217;t know the product code or can only guess at part of it.  As an extra challenge, ideally the dropdown list would display both the code and the description field (but only select the code to fill in the code box).  </p>
<p>At the moment, we have a text entry box.  If the script finds an exact match to the product code entered by the user, it fills in the description in another (editable) text box.  Otherwise it populates new drop down boxes with items that contain the text either in the product code or the description, which is somewhat clumsy, and then the product code can be selected from these, and the description filled in on the Product Description text box as before.  (NB: The code and description are held separately because customers never get to see the product code, but we use it internally for sales reports.)</p>
<p>So, I was very interested in Xipoher&#8217;s comment above &#8220;You could combine this with a dropdown box and that would make it a editable dropdownbox&#8221;.  How would you do this?  I&#8217;ve been searching the web for ages now to find a way to do it with no success.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.311 seconds -->
