<?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; address</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/address/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Sun, 09 May 2010 02:35:53 +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>Javascript Email Validation Form</title>
		<link>http://newsourcemedia.com/blog/javascript-email-validation-form/</link>
		<comments>http://newsourcemedia.com/blog/javascript-email-validation-form/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 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[check]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jscript]]></category>
		<category><![CDATA[save.]]></category>
		<category><![CDATA[using]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2006/12/28/javascript-email-validation-form/</guid>
		<description><![CDATA[Check user email address forms to make sure they are valid using JavaScript before saving their info. The JavaScript code is provided here.

The function below checks if the content has the general syntax of an email.
This means that the input data must contain at least an @ sign and a dot (.). Also, the @ [...]]]></description>
			<content:encoded><![CDATA[<p>Check user email address forms to make sure they are valid using JavaScript before saving their info. The JavaScript code is provided here.<br />
<span id="more-177"></span></p>
<p>The function below checks if the content has the general syntax of an email.</p>
<p>This means that the input data must contain at least an @ sign and a dot (.). Also, the @ must not be the first character of the email address, and the last dot must at least be one character after the @ sign:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> checksubmit<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
apos<span style="color: #339933;">=</span>document.<span style="color: #660066;">add_data</span>.<span style="color: #660066;">email</span>.<span style="color: #660066;">value</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;@&quot;</span><span style="color: #009900;">&#41;</span>
dotpos<span style="color: #339933;">=</span>document.<span style="color: #660066;">add_data</span>.<span style="color: #660066;">email</span>.<span style="color: #660066;">value</span>.<span style="color: #660066;">lastIndexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">add_data</span>.<span style="color: #660066;">email</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">||</span> apos<span style="color: #339933;">&lt;</span><span style="color: #CC0000;">1</span> <span style="color: #339933;">||</span> dotpos<span style="color: #339933;">-</span>apos<span style="color: #339933;">&lt;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Please fix: email&quot;</span><span style="color: #009900;">&#41;</span>
document.<span style="color: #660066;">add_data</span>.<span style="color: #660066;">email</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<div id="crp_related"><h3>Related Posts:</h3><ul><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/sending-email-via-smtp-on-os-x-with-php/" rel="bookmark">Sending email via SMTP on OS X with PHP</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/advanced-email-link/" rel="bookmark">Advanced Email Link</a></li><li><a href="http://newsourcemedia.com/blog/alert-boxes/" rel="bookmark">Alert Boxes</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/javascript-email-validation-form/feed/</wfw:commentRss>
		<slash:comments>6</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/javascript-email-validation-form/" rel="bookmark">Javascript Email Validation Form</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/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! -->