<?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>The Developer Day &#187; tips</title>
	<atom:link href="http://www.thedeveloperday.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedeveloperday.com</link>
	<description>Staying Curious</description>
	<lastBuildDate>Fri, 03 Feb 2012 12:03:22 +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>Internet Explorer HTTP_REFERER javacript redirect issue</title>
		<link>http://www.thedeveloperday.com/internet-explorer-http_referer-javacript-redirect-issue/</link>
		<comments>http://www.thedeveloperday.com/internet-explorer-http_referer-javacript-redirect-issue/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:26:18 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[referer]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/?p=129</guid>
		<description><![CDATA[Internet Explorer has a strange issue regarding http referers. If you would have a link and would follow that link $_SERVER['HTTP_REFERER'] value would get populated. But if a redirect is done using javascript like this: top.location.href = 'page.php'; The HTTP_REFERER will not get value populated. I tried to figure out why is this happening but seems [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer has a strange issue regarding http referers. If you would have a link and would follow that link $_SERVER['HTTP_REFERER'] value would get populated. But if a redirect is done using javascript like this:</p>
<pre name="code" class="javascript:nogutter">top.location.href = 'page.php';</pre>
<p>The HTTP_REFERER will not get value populated. I tried to figure out why is this happening but seems it&#8217;s just the way it is. All other browsers Firefox, Chrome, Opera will set the referer properly, but IE6, IE7 and IE8 will not.</p>
<p>Though it is not a good practice to rely on HTTP_REFERER and you should probably not use it if you can, but nevertheless such kind of behaviour may cause strange bugs. If you happen to know why Internet Explorer behaves like this or know workaround to still have a referer value set when the browser redirects using javascript please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/internet-explorer-http_referer-javacript-redirect-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exotic PHP data type tips and tricks</title>
		<link>http://www.thedeveloperday.com/php-tips-tricks/</link>
		<comments>http://www.thedeveloperday.com/php-tips-tricks/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 22:16:25 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/php-tips-tricks/</guid>
		<description><![CDATA[What do you think the output of this code snippet would be: $array = array (0.1 => 'a', 0.2 => 'b'); echo count ($array); It&#8217;s 1! In PHP array keys can only be made from integers and strings. Strangely enough it accepts floats too and casts them to integers! While reviewing old code you might [...]]]></description>
			<content:encoded><![CDATA[<p>What do you think the output of this code snippet would be:</p>
<pre name="code" class="php:nogutter">$array = array (0.1 => 'a', 0.2 => 'b');
echo count ($array);
</pre>
<p>It&#8217;s 1! In PHP array keys can only be made from integers and strings. Strangely enough it accepts floats too and casts them to integers!</p>
<p>While reviewing old code you might find stuf like:</p>
<pre name="code" class="php:nogutter">my_sort_function(&amp;$array);</pre>
<p>Note that the $array is passed by reference. Yet again it turns out this kind of technique is deprecated and one should redeclare the function to accept the $array by reference. Common in PHP itself. Sadly I didn&#8217;t get a helpful warning that this type of technique is deprecated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/php-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Radio Group Value Tip Using Prototype</title>
		<link>http://www.thedeveloperday.com/javascript-radio-group-value-tip/</link>
		<comments>http://www.thedeveloperday.com/javascript-radio-group-value-tip/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 13:56:15 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/javascript-radio-group-value-tip/</guid>
		<description><![CDATA[A simple tip how to find out radio group value with prototype: var value; Form.getInputs(this.form, 'radio').each( function(input) { if (input.checked) { value = input.value }; });]]></description>
			<content:encoded><![CDATA[<p>A simple tip how to find out radio group value with prototype:</p>
<pre name="code" class="js:nogutter">var value;
Form.getInputs(this.form, 'radio').each( function(input) { if (input.checked) { value = input.value }; });
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/javascript-radio-group-value-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript forms innerHTML issue</title>
		<link>http://www.thedeveloperday.com/javascript-forms-innerhtml-issue/</link>
		<comments>http://www.thedeveloperday.com/javascript-forms-innerhtml-issue/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 08:46:57 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/javascript-forms-innerhtml-issue/</guid>
		<description><![CDATA[If you would do something like this while validating a form: document.getElementById('your_form_id').innerHTML += 'any text'; Your form will get reseted and there&#8217;s nothing more to validate.]]></description>
			<content:encoded><![CDATA[<p>If you would do something like this while validating a form:</p>
<pre class="js:nogutter">document.getElementById('your_form_id').innerHTML += 'any text';</pre>
<p>Your form will get reseted and there&#8217;s nothing more to validate.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/javascript-forms-innerhtml-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

