<?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; warning</title>
	<atom:link href="http://www.sajithmr.me/tag/warning/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>Quick tips for https connection (Non secure content warning &#8211; IE)</title>
		<link>http://www.sajithmr.me/quick-tips-for-https-connection-non-secure-content-warning-ie</link>
		<comments>http://www.sajithmr.me/quick-tips-for-https-connection-non-secure-content-warning-ie#comments</comments>
		<pubDate>Mon, 17 May 2010 23:14:49 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[https warning]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[non-secure content]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[safety]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=713</guid>
		<description><![CDATA[If you are using https pages or some of the pages (payment pages etc) in your website, keep the following in your mind. In some browsers especially IE shows warning of non-secured content in secured page. This cause user the feeling that the website is not secured. Use relative url always. Relative URL means those [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-714" title="browsers_dhtml" src="http://www.sajithmr.me/wp-content/uploads/2010/05/browsers_dhtml.jpg" alt="browsers_dhtml" width="270" height="250" /></p>
<p>If you are using https pages or some of the pages (payment pages etc) in your website, keep the following in your mind. In some browsers especially IE shows warning of non-secured content in secured page. This cause user the feeling that the website is not secured.</p>
<ol>
<li>Use relative url always. Relative URL means those without starting with http:// or https://, instead use relative url.</li>
<li>If you need to use full url, use dynamic base name in with your programming language.For example in PHP, define BASE_URL = http://www.yoursite.com and use this variable in every links and forms. Change the BASE_URL value between http and https depending upon the protocol ($_SERVER['HTTP_HOST'])</li>
<li>Check  inside javascript function whether it is calling any non-secured url. (For example, sometime you may use full url inside Javascript). Check using if condition to decide, which protocol to use, like what Google Analytic does.<br />
eg:  (&#8220;https:&#8221; == document.location.protocol) ? &#8220;https://ssl.&#8221; : &#8220;http://www.&#8221;);</li>
<li> Check if there is any flash content which tries to load data from non-secured url. There is a chance to load some xml configuration files using http protocol</li>
<li> Also change the codebase parameter value in object tag (flash or other media) whether it is pointing http or https url. There is a chance for this url in flash content.<br />
<span style="color: #ff6600;">codebase=&#8221;http://download.macromedia.com/pub/shockwave /cabs/flash/swflash.cab#version=9,0,115,0&#8243;<br />
<span style="color: #000000;">Change this url to https://downoad&#8230;<br />
</span><br />
</span></li>
<li><span style="color: #ff6600;"><span style="color: #000000;">If you are using facebook connect or such integration, check the javascript initialisation code.<br />
<span style="color: #008000;">FB.init(&#8220;78bc8ffb87c41eabb6395a2045c76021&#8243;, &#8220;/xd_receiver.htm</span>&#8220;);<br />
Inside the xd_receiver.htm file, the cross platform callback will be non secured url (http)<br />
Change this to xd_reciver_ssl.htm and use new code, which is available in Facebook documentation</p>
<p></span></span></li>
</ol>
<p>Tools like Fiddler can be used to check which url is non-secured. Firebug cannot show all non-secure connections. If the above steps do not solve your problem, try disabling javascript files one by one to point out which call is making the problem. Also try this by disabling Flash objects one by one.</p>
<p>Good luck guys</p>
<p>Cheers</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/quick-tips-for-https-connection-non-secure-content-warning-ie/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JBar &#8211; Jquery Bar</title>
		<link>http://www.sajithmr.me/jbar-jquery-bar</link>
		<comments>http://www.sajithmr.me/jbar-jquery-bar#comments</comments>
		<pubDate>Sun, 27 Dec 2009 11:47:33 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[jbar]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=545</guid>
		<description><![CDATA[Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221; Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page) I [...]]]></description>
			<content:encoded><![CDATA[<p>Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221;</p>
<p>Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page)</p>
<p>I added some more functions to this plugin to display the notification in different context, say information, warning or error message. The function show_flash(&#8216;message here&#8217;); can be used for this purpose. Second parameter is the type of message. For example, show_flash(&#8216;Error in deleting file&#8217;, &#8216;error&#8217;) OR  show_flash(&#8216;Email address entered is invalid&#8217;, &#8216;warning&#8217;)</p>
<p>If you use sessions to save flash message , for example in codeigniter $this-&gt;session-&gt;set_flashdata(&#8216;message&#8217;,'hello&#8217;); you can use this plugin to display them by adding a php code in the footer  (or header) of every page</p>
<p>&lt;?php if($this-&gt;session-&gt;flashdata(&#8216;message&#8217;) != &#8221; )  : ?&gt;</p>
<p>&lt;script&gt;show_flash(&#8216;&lt;?= $this-&gt;session-&gt;flashdata(&#8216;message&#8217;) ?&gt;&#8217;)&lt;/script&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>Here you can download the full source code:  <a href="http://www.sajithmr.me/downloads/jbar.zip">http://www.sajithmr.me/downloads/jbar.zip</a></p>
<p><img class="alignnone size-large wp-image-566" title="Screen shot 2009-12-27 at 11.30.12" src="http://www.sajithmr.me/wp-content/uploads/2009/12/Screen-shot-2009-12-27-at-11.30.12-1024x182.png" alt="Screen shot 2009-12-27 at 11.30.12" width="717" height="127" /></p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jbar-jquery-bar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firephp</title>
		<link>http://www.sajithmr.me/firephp</link>
		<comments>http://www.sajithmr.me/firephp#comments</comments>
		<pubDate>Mon, 17 Aug 2009 22:45:46 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firephp]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=452</guid>
		<description><![CDATA[We like firebug , We like PHP , if so, We also begin to  like FirePHP !!! Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console. In our php life, we know we can use echo function to print or debug the value of a [...]]]></description>
			<content:encoded><![CDATA[<p>We like firebug , We like PHP , if so, We also begin to  like FirePHP !!!</p>
<p>Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console.</p>
<p><a href="http://www.sajithmr.com/wp-content/uploads/2009/08/firebug-extlist-firephp.png"><img class="alignnone size-full wp-image-453" title="firebug-extlist-firephp" src="http://www.sajithmr.com/wp-content/uploads/2009/08/firebug-extlist-firephp.png" alt="" width="422" height="457" /></a></p>
<p>In our php life, we know we can use echo function to print or debug the value of a variable and we usually do that. But if there is any header function such as image manipulation, redirection etc, if you use echo or print either it leads into unwanted results or we get the common error, cannot modify header information headers already sent  !!!</p>
<p>The one solution for this is, writing the variable value into a log file and check the log file after execution. But the advantage of fire php is, you can log messages, or value of a variable and can see through firebug console.</p>
<p>For example:</p>
<p>&lt;?php $fire_php-&gt;log(&#8216;Enter into function&#8217;); ?&gt;</p>
<p>&lt;?php $fire_php-&gt;log($result); ?&gt;</p>
<p>You can also categorize your error as warning or error . eg:</p>
<p>&lt;?php $fire_php-&gt;warn(&#8216;Variable value is not set&#8217;)?&gt; or</p>
<p>&lt;?php $fire_php-&gt;error(&#8216;No parameter passed&#8217;) ?&gt;</p>
<p>For more go to: <a style="text-decoration: none;" href="http://www.firephp.org/">http://www.firephp.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/firephp/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>

