<?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:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; autofill</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/autofill/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Wed, 11 Aug 2010 13:56:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Alert Boxes</title>
		<link>http://newsourcemedia.com/blog/alert-boxes/</link>
		<comments>http://newsourcemedia.com/blog/alert-boxes/#comments</comments>
		<pubDate>Mon, 29 Mar 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JS Tutorials Beginner]]></category>
		<category><![CDATA[alert boxes]]></category>
		<category><![CDATA[auto-fill]]></category>
		<category><![CDATA[autofill]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/03/28/alert-boxes/</guid>
		<description><![CDATA[Alert boxes are small popup boxes that are triggered by user events. Here are a few good examples on how to alert your users.

Alert boxes could be used to help users find mistakes, warn                      [...]]]></description>
			<content:encoded><![CDATA[<p>Alert boxes are small popup boxes that are triggered by user events. Here are a few good examples on how to alert your users.<br />
<span id="more-212"></span></p>
<p>Alert boxes could be used to help users find mistakes, warn                        them of hazards, or to display a status of events.</p>
<p class="contitle">1) View Alert Box</p>
<p><a onclick="alert('This is an alert')" href="../../Admin/updatewp#">Click here                        to see an alert!</a></p>
<p>Here is the source code:</p>
<p class="sourceCODE">&lt;a href=&#8221;#&#8221; onclick=&#8221;alert(&#8216;This                        is an alert&#8217;)&#8221;&gt;Click here to see an alert!&lt;/a&gt;</p>
<p>You could also use the <span class="sourceCODE">onclick=&#8221;alert(&#8220;bla                        bla&#8221;)&#8221;</span> or the <span class="sourceCODE">onChange=&#8221;alert(&#8220;bla                        bla&#8221;)&#8221;</span> inside form elements like buttons                        and pulldown menus.</p>
<p class="contitle">2) Other Options:</p>
<p>You can also alert users before they enter your site by                        placing the &#8220;<span class="sourceCODE">alert</span>&#8221;                        inside the body tag like so:</p>
<p class="sourceCODE">&lt;body onload=&#8221;alert(&#8216;Warning:                        this site is crazy.&#8217;)&#8221;&gt;</p>
<p class="contitle">3) Confirm: Yes or Cancel Alert:</p>
<p>JavaScript provides a function called confirm. This generates                        an alert box with two buttons, asking &#8220;Yes&#8221; or                        &#8220;Cancel&#8221;. To create this alert we define our own                        function in the head of a document:</p>
<p>[Start of Code]</p>
<p><span class="sourceCODE">&lt;script language=&#8221;javascript&#8221;                        type=&#8221;text/javascript&#8221;&gt;<br />
&lt;!&#8211;<br />
function alertURL(url) {<br />
if(confirm(&#8220;Are you sure you want to click this link&#8221;))<br />
{<br />
location=url<br />
}<br />
}<br />
//&#8211;&gt;<br />
&lt;/script&gt;</span></p>
<p class="sourceHTML">&lt;!&#8211; The new function &#8220;<span class="sourceCODE">alertURL()</span>&#8221;                        is called once the link (below) is clicked. Notice that                        the url address below is located inside the brackets. This                        is then passed to our function and handled by the javascript                        &#8220;<span class="sourceCODE">location</span>&#8221; statement                        if the user clicks yes: &#8211;&gt;</p>
<p class="sourceCODE">&lt;a href=&#8221;#&#8221; onClick=&#8221;alertURL(&#8216;fake_page.html&#8217;)&#8221;&gt;Click                        Here!&lt;/a&gt;</p>
<p>[End of Code]</p>
<p>This could be used to persuade users to stay on the page                        they are visiting. Or if the link was directed to a server                        side program that would execute code that was unchangeable                        (ex: delete a file or update data), this would be a safe                        guard.</p>
<p class="contitle">4) Confirm: Form Submissions Yes or No                        Alert</p>
<p>You can also use it on a form submission. This is easy.                        Just add the following code to your &#8220;form&#8221; tab:</p>
<p>[Code]</p>
<p class="sourceCODE">&lt;form action=&#8221;" method=&#8221;get&#8221;                        <span style="color: #ff6600;">onsubmit=&#8221;return confirm(&#8216;Are                        you sure?&#8217;)&#8221;</span>&gt;</p>
<p>[End of Code]</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://newsourcemedia.com/blog/delete-warning/" rel="bookmark">Delete Warning</a></li><li><a href="http://newsourcemedia.com/blog/popup-chromeless-window/" rel="bookmark">Popup Chromeless Window</a></li><li><a href="http://newsourcemedia.com/blog/source-include/" rel="bookmark">Source Include</a></li><li><a href="http://newsourcemedia.com/blog/javascript-non-alphanumeric-characters-regex/" rel="bookmark">Javascript Non Alphanumeric Characters Regex</a></li><li><a href="http://newsourcemedia.com/blog/php-lesson-3-creating-functions/" rel="bookmark">PHP Lesson 3 - Creating Functions</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/alert-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Address Auto-Fill Ckeck Box</title>
		<link>http://newsourcemedia.com/blog/address-auto-fill-ckeck-box/</link>
		<comments>http://newsourcemedia.com/blog/address-auto-fill-ckeck-box/#comments</comments>
		<pubDate>Sat, 28 Feb 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JS Forms]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[autofill]]></category>
		<category><![CDATA[check box]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/02/27/address-auto-fill-ckeck-box/</guid>
		<description><![CDATA[Javascript code that automatically fills in the address in all places needed on the page after just once entering it and selecting the check box.

Introduction:
I ran across this code when working on a registration                      [...]]]></description>
			<content:encoded><![CDATA[<p>Javascript code that automatically fills in the address in all places needed on the page after just once entering it and selecting the check box.<br />
<span id="more-213"></span></p>
<p><span class="contitle">Introduction:</span></p>
<p>I ran across this code when working on a registration                        product site. The goal is to save the user&#8217;s time by not                        having them fill in the same address over and over, if the                        address for there billing is the same as the mailing address.</p>
<p>You can view a working form by <a href="http://newsourcemedia.com/Tutorials/JS-AddressCkBox.html" target="_blank">clicking                        here</a>.</p>
<p class="contitle">Source Code</p>

<div class="wp_syntax"><div class="code"><pre class="js" style="font-family:monospace;">&lt;html&gt;
&lt;title&gt;&lt;/title&gt;
&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
function set_billing(box)
{
var f = box.form, b_which = box.checked, from_el, to_el, i = 0;
var fld_name = new Array('city' , 'state');
while (from_el = f[fld_name[i]])
{
to_el = f['bill' fld_name[i ]];
to_el.value = b_which ? from_el.value : '';
if (to_el.readOnly != null)
to_el.readOnly = b_which ? true : false;
else to_el.onfocus = b_which ? function() {this.blur();
}
: null;
}
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;
&lt;strong&gt;Mailing Address&lt;/strong&gt;&lt;br&gt;
City: &lt;input name=&quot;city&quot; type=&quot;text&quot; id=&quot;city&quot; onchange=&quot;set_billing(billingaddrsame)&quot;&gt;&lt;br&gt;
State: &lt;input name=&quot;state&quot; type=&quot;text&quot; id=&quot;state&quot; onchange=&quot;set_billing(billingaddrsame)&quot;&gt;&lt;br&gt;
&lt;strong&gt;Billing Address&lt;/strong&gt;&lt;br&gt;
( same as above)
&lt;input type=&quot;checkbox&quot; name=&quot;billingaddrsame&quot; onclick=&quot;set_billing(this)&quot;&gt;&lt;br&gt;
City: &lt;input name=&quot;billcity&quot; type=&quot;text&quot; id=&quot;billcity&quot;&gt;&lt;br&gt;
State: &lt;input name=&quot;billstate&quot; type=&quot;text&quot; id=&quot;billstate&quot;&gt;&lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://newsourcemedia.com/blog/telephon-check-box/" rel="bookmark">Telephon Check Box</a></li><li><a href="http://newsourcemedia.com/blog/alert-boxes/" rel="bookmark">Alert Boxes</a></li><li><a href="http://newsourcemedia.com/blog/php-email-form-easy/" rel="bookmark">PHP Email Form Easy</a></li><li><a href="http://newsourcemedia.com/blog/javascript-email-validation-form/" rel="bookmark">Javascript Email Validation Form</a></li><li><a href="http://newsourcemedia.com/blog/php-lesson-1-first-php-script/" rel="bookmark">PHP Lesson 1 - First PHP Script</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/address-auto-fill-ckeck-box/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Telephon Check Box</title>
		<link>http://newsourcemedia.com/blog/telephon-check-box/</link>
		<comments>http://newsourcemedia.com/blog/telephon-check-box/#comments</comments>
		<pubDate>Sat, 28 Feb 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JS Forms]]></category>
		<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[autofill]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[enter.]]></category>
		<category><![CDATA[field]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[telephone]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/02/27/telephon-check-box/</guid>
		<description><![CDATA[Javascript code that automatically fills in the telephone number in all places needed after just once entering it and selecting a check box.

Introduction:
I ran accross this code when working on a registration                        [...]]]></description>
			<content:encoded><![CDATA[<p>Javascript code that automatically fills in the telephone number in all places needed after just once entering it and selecting a check box.<br />
<span id="more-214"></span><br />
<span class="contitle">Introduction:</span></p>
<p>I ran accross this code when working on a registration                        product site. The goal is to save the user&#8217;s time by not                        having them fill in the same telephone number over and over,                        if the number is the same as other data fields.</p>
<p>You can view a working form by <a href="http://newsourcemedia.com/Tutorials/JS-TeleCheckBox.html" target="_blank">clicking                        here</a>.</p>
<p class="contitle">Source Code</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;NSM | Tele Check Box&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form&gt;
Home Telephone:
&lt;input name=&quot;home_phone&quot; type=&quot;text&quot; size=&quot;14&quot; maxlength=&quot;12&quot;&gt;
&lt;br&gt;
Work Telephone:
&lt;input name=&quot;work_phone&quot; type=&quot;text&quot; size=&quot;14&quot; maxlength=&quot;12&quot;&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;same_mail&quot; onClick=&quot;work_phone.value=(this.checked)?home_phone.value:''&quot;&gt;
(check if same as home number)
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://newsourcemedia.com/blog/address-auto-fill-ckeck-box/" rel="bookmark">Address Auto-Fill Ckeck Box</a></li><li><a href="http://newsourcemedia.com/blog/php-email-form-easy/" rel="bookmark">PHP Email Form Easy</a></li><li><a href="http://newsourcemedia.com/blog/alert-boxes/" rel="bookmark">Alert Boxes</a></li><li><a href="http://newsourcemedia.com/blog/php-lesson-1-first-php-script/" rel="bookmark">PHP Lesson 1 - First PHP Script</a></li><li><a href="http://newsourcemedia.com/blog/popup-chromeless-window/" rel="bookmark">Popup Chromeless Window</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/telephon-check-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->