<?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>Mon, 07 May 2012 01:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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 them of hazards, or to &#8230; <a href="http://newsourcemedia.com/blog/alert-boxes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![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.
<span id="more-212"></span>

Alert boxes could be used to help users find mistakes, warn                        them of hazards, or to display a status of events.
<p class="contitle">1) View Alert Box</p>

<a onclick="alert('This is an alert')" href="../../Admin/updatewp#">Click here                        to see an alert!</a>

Here is the source code:
<p class="sourceCODE">&lt;a href="#" onclick="alert('This                        is an alert')"&gt;Click here to see an alert!&lt;/a&gt;</p>

You could also use the <span class="sourceCODE">onclick="alert("bla                        bla")"</span> or the <span class="sourceCODE">onChange="alert("bla                        bla")"</span> inside form elements like buttons                        and pulldown menus.
<p class="contitle">2) Other Options:</p>

You can also alert users before they enter your site by                        placing the "<span class="sourceCODE">alert</span>"                        inside the body tag like so:
<p class="sourceCODE">&lt;body onload="alert('Warning:                        this site is crazy.')"&gt;</p>
<p class="contitle">3) Confirm: Yes or Cancel Alert:</p>

JavaScript provides a function called confirm. This generates                        an alert box with two buttons, asking "Yes" or                        "Cancel". To create this alert we define our own                        function in the head of a document:



<span class="sourceCODE">&lt;script language="javascript"                        type="text/javascript"&gt;
&lt;!--
function alertURL(url) {
if(confirm("Are you sure you want to click this link"))
{
location=url
}
}
//--&gt;
&lt;/script&gt;</span>
<p class="sourceHTML">&lt;!-- The new function "<span class="sourceCODE">alertURL()</span>"                        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                        "<span class="sourceCODE">location</span>" statement                        if the user clicks yes: --&gt;</p>
<p class="sourceCODE">&lt;a href="#" onClick="alertURL('fake_page.html')"&gt;Click                        Here!&lt;/a&gt;</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 class="contitle">4) Confirm: Form Submissions Yes or No                        Alert</p>

You can also use it on a form submission. This is easy.                        Just add the following code to your "form" tab:


<p class="sourceCODE">&lt;form action="" method="get"                        <span style="color: #ff6600;">onsubmit="return confirm('Are                        you sure?')"</span>&gt;</p>

]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/alert-boxes/feed/</wfw:commentRss>
		<slash:comments>2</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 product site. The goal &#8230; <a href="http://newsourcemedia.com/blog/address-auto-fill-ckeck-box/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![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.
<span id="more-213"></span>

<span class="contitle">Introduction:</span>

I ran across this code when working on a registration                        product site. The goal is to save the user'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.

You can view a working form by <a href="http://newsourcemedia.com/Tutorials/JS-AddressCkBox.html" target="_blank">clicking                        here</a>.
<p class="contitle">Source Code</p>

<pre lang="js">
<html>
<title></title>
<head>
<script type="text/javascript" language="javascript">
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])
{
to_el = f];
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;
}
}
</script>
</head>
<body>
<form>
<table>
<tr>
<td align="right">
<strong>Mailing Address</strong><br>
City: <input name="city" type="text" id="city" onchange="set_billing(billingaddrsame)"><br>
State: <input name="state" type="text" id="state" onchange="set_billing(billingaddrsame)"><br>
<strong>Billing Address</strong><br>
( same as above)
<input type="checkbox" name="billingaddrsame" onclick="set_billing(this)"><br>
City: <input name="billcity" type="text" id="billcity"><br>
State: <input name="billstate" type="text" id="billstate"><br>
</td>
</tr>
</table>
</form>
</body>
</html>
</pre>]]></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[Javascripts]]></category>
		<category><![CDATA[JS Forms]]></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 product site. The goal is to &#8230; <a href="http://newsourcemedia.com/blog/telephon-check-box/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Javascript code that automatically fills in the telephone number in all places needed after just once entering it and selecting a check box.
<span id="more-214"></span>
<span class="contitle">Introduction:</span>

I ran accross this code when working on a registration                        product site. The goal is to save the user'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.

You can view a working form by <a href="http://newsourcemedia.com/Tutorials/JS-TeleCheckBox.html" target="_blank">clicking                        here</a>.
<p class="contitle">Source Code</p>
<pre lang="html">
<html>
<head>
<title>NSM | Tele Check Box</title>
</head>
<body>
<form>
Home Telephone:
<input name="home_phone" type="text" size="14" maxlength="12">
<br>
Work Telephone:
<input name="work_phone" type="text" size="14" maxlength="12">
<input type="checkbox" name="same_mail" onClick="work_phone.value=(this.checked)?home_phone.value:''">
(check if same as home number)
</form>
</body>
</html>
</pre>]]></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! -->
