<?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; perl</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/perl/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>Delete Warning</title>
		<link>http://newsourcemedia.com/blog/delete-warning/</link>
		<comments>http://newsourcemedia.com/blog/delete-warning/#comments</comments>
		<pubDate>Sat, 28 Feb 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[Navagation]]></category>
		<category><![CDATA[administration.]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[buttom]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[copy and paste]]></category>
		<category><![CDATA[custom message]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/02/27/delete-warning/</guid>
		<description><![CDATA[Javascript that alert users when clicking on sensitive links (like delete or update links). You can customize the message with option to continue or cancel. Works great with PHP, ASP, and Perl administration sites.
Introduction:
This javascript                     [...]]]></description>
			<content:encoded><![CDATA[<p>Javascript that alert users when clicking on sensitive links (like delete or update links). You can customize the message with option to continue or cancel. Works great with PHP, ASP, and Perl administration sites.<br />
<span id="more-217"></span><span class="contitle">Introduction:</span></p>
<p class="content">This javascript                        registers an event handler to a link on a page. When users                        click a link, the code executes a pop-up alert window asks                        them to confirm that this is the link they wanted to click.                        This is perfect for server side programs that delete files                        on a server or modify data in a database. (<a href="http://newsourcemedia.com/Tutorials/JS-Warning Link2.php">View</a> the test page.)</p>
<p class="contitle">Source Code:</p>
<p><span class="sourceCODE">&lt;script&gt;<br />
function confirmDelete(delUrl,name_cat) {<br />
if (confirm(&#8220;Are you sure you want to delete \nrow                        number \&#8221;"   name_cat   &#8220;\&#8221;\nfrom the                        database&#8221;)) {<br />
document.location = delUrl;<br />
}<br />
}<br />
&lt;/script&gt;</span></p>
<p><span class="sourceCODE">&lt;!&#8211; now the html link &#8211;&gt;</span></p>
<p><span class="sourceCODE">&lt;a href=&#8221;javascript:confirmDelete(&#8216;yourpage.php?delete=293&#8242;,&#8217;293&#8242;)&#8221;&gt;Delete&lt;/a&gt;</span></p>
<p class="contitle">Adding it to your site:</p>
<p>There are just a few areas you will need to change to customize                        the code for your use. Number one is the message inside                        of the javascript event handler (<span class="sourceCODE">&#8220;Are                        you sure you want to delete \nrow number \&#8221;"                          name_cat   &#8220;\&#8221;\nfrom the database&#8221;</span>).                        Notice I used (<span class="sourceCODE">\n</span>) for a new                        line and (<span class="sourceCODE">\&#8221;</span>) for quotes.                        You can delete them if you like. You can also delete or                        move around the (<span class="sourceCODE">&#8221;   name_cat                          &#8220;</span>) inside the message.</p>
<p>The second thing you will have to modify is the link values                        (<span class="sourceCODE">&#8216;yourpage.php?delete=293&#8242;,&#8217;293&#8242;</span>).                        Change the file name to your serverside program file path                        and change the id row numbers (<span class="sourceCODE">&#8216;293&#8242;</span>)                        to the id row number of your database rows.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://newsourcemedia.com/blog/alert-boxes/" rel="bookmark">Alert Boxes</a></li><li><a href="http://newsourcemedia.com/blog/source-include/" rel="bookmark">Source Include</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/array-lesson-part-1/" rel="bookmark">Array: Lesson Part 1</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/delete-warning/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! -->