<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; close</title>
	<atom:link href="http://www.sajithmr.me/tag/close/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 16:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress Plugin &#8211; Warning Before Closing</title>
		<link>http://www.sajithmr.me/wordpress-plugin-warning-before-closing</link>
		<comments>http://www.sajithmr.me/wordpress-plugin-warning-before-closing#comments</comments>
		<pubDate>Wed, 29 Oct 2008 15:08:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[offer]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[warning]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=332</guid>
		<description><![CDATA[Today i published my new wordpress plugin, which control user navigation. The plugin name is &#8220;Close Warning&#8221;. It prompts the user a confirmation message before they close the browser window or tab. After that a lightweight window popup jumps up with your preset announcement or message  (in richtext format) The Advantages &#62;&#62; You can avoid [...]]]></description>
			<content:encoded><![CDATA[<p>Today i published my new wordpress plugin, which control user navigation. The plugin name is &#8220;Close Warning&#8221;.</p>
<p>It prompts the user a confirmation message before they close the browser window or tab. After that a lightweight window popup jumps up with your preset announcement or message  (in richtext format)</p>
<p>The Advantages &gt;&gt;</p>
<ol>
<li>You can avoid the accidental close of browser window</li>
<li>You can tell or mention any message or offers before they navigate away from your website</li>
<li>It works not only on closing, but in any type of external navigation (Internal navigation is screened out from this warning)</li>
<li>Since it is built on lightweight window support, your message or warning appears very eye-catchy</li>
</ol>
<p>You can download the plugin from : <a title="Warning Before Closing" href="http://www.sajithmr.com/downloads/onclose-warning.zip" target="_self">http://www.sajithmr.com/downloads/onclose-warning.zip</a></p>
<div id="attachment_333" class="wp-caption alignnone" style="width: 510px"><a href="http://www.sajithmr.com/wp-content/uploads/2008/10/areusyre.jpg"><img class="size-full wp-image-333" title="Screen Shot - Warning before close" src="http://www.sajithmr.com/wp-content/uploads/2008/10/areusyre.jpg" alt="Screen Shot - Warning before close" width="500" height="314" /></a><p class="wp-caption-text">Screen Shot - Warning before close</p></div>
<p>From the setting page, you can set your rich text message or warning / offer . See the screen shot:</p>
<div id="attachment_334" class="wp-caption alignnone" style="width: 430px"><a href="http://www.sajithmr.com/wp-content/uploads/2008/10/optionpage.jpg"><img class="size-full wp-image-334" title="Warning Before Closing" src="http://www.sajithmr.com/wp-content/uploads/2008/10/optionpage.jpg" alt="Warning Before Closing" width="420" height="304" /></a><p class="wp-caption-text">Warning Before Closing</p></div>
<p>Please feel free to mail me regarding any clarification and upgrade to admin@sajithmr.com</p>
<p>Regards</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/wordpress-plugin-warning-before-closing/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Warning before navigate away from a page</title>
		<link>http://www.sajithmr.me/warning-before-navigate-away-from-a-page</link>
		<comments>http://www.sajithmr.me/warning-before-navigate-away-from-a-page#comments</comments>
		<pubDate>Sat, 19 Jul 2008 15:27:07 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[away]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[confirm]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[navigate]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/warning-before-navigate-away-from-a-page/</guid>
		<description><![CDATA[In some cases, if you are in between any work of editing or typing a content, and you wont let the visitor to navigate away from the page without particular condition, say the document is not saved yet, you can block the navigation (even the closing of the browser window) with Javascript. Here is the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/07/man.jpg" style="margin: 10px; float: left" /></p>
<p>In some cases, if you are in between any work of editing or typing a content, and you wont let the visitor to navigate away from the page without particular condition, say the document is not saved yet, you can block the navigation (even the closing of the browser window)  with Javascript.</p>
<p>Here is the javascript code for that:</p>
<p><font color="#808080"><br />
<font color="#808000">&lt;script&gt;</font></font></p>
<p><font color="#808080"><font color="#808000">window.onbeforeunload = function (evt) {<br />
var message = &#8216;Are you sure you want to leave?&#8217;;<br />
if (typeof evt == &#8216;undefined&#8217;) {<br />
evt = window.event;<br />
}<br />
if (evt) {<br />
evt.returnValue = message;<br />
}<br />
return message;<br />
}</font></font></p>
<p><font color="#808080"><font color="#808000">&lt;/script&gt; </font></font></p>
<p>Just paste this code anywhere in your html page. The condition settings , warning messages are up to you. In the above code, the warning will be displayed when ever a navigation happen (Even closing of browser window happen)</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/07/confirmation.png" /></p>
<p>(pic from Binney V.A)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/warning-before-navigate-away-from-a-page/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

