<?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>Kurinchi Blogger Scribbles ... &#187; HTML</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/category/html/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>HTTP-Header: User-agent modification</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/12/http-header-user-agent-modification.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/12/http-header-user-agent-modification.html#comments</comments>
		<pubDate>Sun, 06 Dec 2009 07:09:21 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[http headers]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[modify user agent]]></category>
		<category><![CDATA[user-agent]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=740</guid>
		<description><![CDATA[When a browser makes a request to the server, it sends information such as its operating system name, version in addition to the type of the browser from which the request originates in the header variable &#8220;user-agent&#8221;. Depending on the request made, server responds back with specific details which can range from browser specific css [...]]]></description>
			<content:encoded><![CDATA[<p>When a browser makes a request to the server, it sends information such as its operating system name, version in addition to the type of the browser from which the request originates in the header variable &#8220;user-agent&#8221;. </p>
<p>Depending on the request made, server responds back with specific details which can range from browser specific <strong>css </strong>layout to calling certain <em>javascripts</em>for certain browsers.</p>
<p>Changing the <strong>user-agent</strong> also helps us in understanding how spider-agents or bots will see the pages that we build. It also helps us design applications that will mimic a request as originating from a mobile phone and helps us in viewing the behavior of the application in different mobile clients.</p>
<p>To read more about HTTP-Headers check <a href="http://www.ietf.org/rfc/rfc2616.txt" target="_blank">ietf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/12/http-header-user-agent-modification.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox: Developer Friendly Browsing Tool</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/11/firefox-developer-friendly-browsing-tool.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/11/firefox-developer-friendly-browsing-tool.html#comments</comments>
		<pubDate>Tue, 17 Nov 2009 07:38:18 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Free Download]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[UI, CSS]]></category>
		<category><![CDATA[colorzilla]]></category>
		<category><![CDATA[css viewer]]></category>
		<category><![CDATA[developer tools]]></category>
		<category><![CDATA[FireBug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox browser]]></category>
		<category><![CDATA[firefox extensions]]></category>
		<category><![CDATA[Live HTTP Headers]]></category>
		<category><![CDATA[measureit]]></category>
		<category><![CDATA[web developer extension]]></category>
		<category><![CDATA[yslow]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=718</guid>
		<description><![CDATA[Firefox is one of the best tool available for web developers which equips the developer with code testing and debugging capabilities. There are many useful firefox options and extensions that comes in handy during software development life cycle and in this article we will be listing few of useful plugins that we commonly use. To [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Firefox </strong>is one of the best tool available for web developers which equips the developer with code testing and debugging capabilities.</p>
<p>There are many useful firefox options and extensions that comes in handy during software development life cycle and in this article we will be listing few of useful plugins that we commonly use.</p>
<p>To find information related to the page that is getting displayed on the browser click <strong>Tools > Page info</strong>. This will give you permission settings of a page, security identity of the page, feed url and other page specific information like page content-type, encoding, meta tags used, cookie permission settings etc. </p>
<p><a href="http://chrispederick.com/work/web-developer/">Web Developer extension</a><br />
Added as a toolbar in firefox, this extension gives CSS related information, page information, outlines page elements, tab index, gives topographic information and many such details.<br />
<span id="more-718"></span><br />
<a href="http://www.colorzilla.com/firefox/index.html">Colorzilla</a><br />
Finds elements on the page corresponding to a given color, find out CSS rules and helps in checking the DOM element colors.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/2104?id=2104&#038;vid=12666">CSS Viewer</a><br />
Helps give comprehensive list of CSS values for any chosen element.</p>
<p><a href="http://www.kevinfreitas.net/extensions/linkchecker/">Link Checker</a><br />
If you are building applications which will involve heavy cross linking between pages this tool will gracefully point out the broken links in the pages helping the developers in swiftly modifying the links.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/539">MeasureIT</a><br />
It comes handy for the designers especially when they want to find out the width/height of an image or the size of the layout as it draws a ruler to get the pixel dimensions.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/3829">LiveHTTPHeaders</a><br />
Tool to find the http header information including the cookie information that is transmitted  when a request for a page is made.</p>
<p><a href="http://chrispederick.com/work/user-agent-switcher/">User Agent Switcher</a><br />
As a developer have you ever come across a situation where you wanted to identify your web pages with different user agents IE6, IE7, Firefox to the web server. Then this is the tool that you are looking for. It also supports Flock, Seamonkey, Mac OS and Linux user agents.</p>
<p><a href="http://ietab.mozdev.org/">IE Tab</a>For cross browser compatibility especially with the varied CSS rules in different IE versions, it often becomes hectic to test the functionality across different browsers. This tool helps run IE as a tab inside firefox.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/5369">YSlow</a><br />
This is a plugin from yahoo and it aids in finding why a page loads slowly.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a><br />
This is the single most commonly used plugin by the development community. It helps developers in debugging, tracing attributes and values in html, css, javascript in addition to help traversing ajax requests.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/11/firefox-developer-friendly-browsing-tool.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query string limit in GET data and Size limit in POST Data</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/11/query-string-limit-in-get-data-and-size-limit-in-post-data.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/11/query-string-limit-in-get-data-and-size-limit-in-post-data.html#comments</comments>
		<pubDate>Wed, 11 Nov 2009 01:15:07 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[get data]]></category>
		<category><![CDATA[POST DATA]]></category>
		<category><![CDATA[POST data size]]></category>
		<category><![CDATA[Query string length]]></category>
		<category><![CDATA[URI length]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=711</guid>
		<description><![CDATA[RFC 2616 &#8211; Section 3 states: &#8220;Servers should be cautious about depending on URI lengths above 255 bytes because some older client or proxy implementations may not properly support these lengths.&#8221; Different browser agents support different URI length acceptance. In addition, servers too play a role in accepting/denying URI&#8217;s over certain length which may either [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html">RFC 2616 &#8211; Section 3 </a>states:</p>
<p>&#8220;Servers should be cautious about depending on URI lengths above 255 bytes because some older client or proxy implementations may not properly support these lengths.&#8221;</p>
<p>Different browser agents support different URI length acceptance. In addition, servers too play a role in accepting/denying URI&#8217;s over certain length which may either truncate the URI or may give lengthy URI message indications.</p>
<p>It is always advisable to <strong>rely on shorter URI&#8217;s </strong>and to post data when more field sets are to be transferred across web pages. </p>
<p>POST data too has its limit. In this case, it is the size of the data which is controlled by the server settings.</p>
<p><strong>Some interesting discussions:</strong></p>
<p><a href="http://classicasp.aspfaq.com/forms/what-is-the-limit-on-form/post-parameters.html">Limit on query string GET URL parameters</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/11/query-string-limit-in-get-data-and-size-limit-in-post-data.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to open ALL external web sites or references in a NEW window?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/09/how-to-open-all-external-web-sites-or-references-in-a-new-window.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/09/how-to-open-all-external-web-sites-or-references-in-a-new-window.html#comments</comments>
		<pubDate>Sun, 06 Sep 2009 01:58:13 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[UI, CSS]]></category>
		<category><![CDATA[external links new window]]></category>
		<category><![CDATA[http links new window]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[new window open]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=670</guid>
		<description><![CDATA[Using JQuery to open external links in new windows Earlier we used to write a string of code in javascript to enable opening external references in a new window in addition to modifying the html code With JQuery, this can be done with one line of code as shown below $(document).ready(function(){ $("a[@href^='http']").attr('target','_blank'); }); The above [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using JQuery to open external links in new windows</strong></p>
<p>Earlier we used to write a string of code in javascript to enable opening external references in a new window in addition to modifying the html code </p>
<p>With JQuery, this can be done with one line of code as shown below</p>
<pre class="brush: php;">
$(document).ready(function(){
    $("a[@href^='http']").attr('target','_blank');
});
</pre>
<p>The above line checks for occurences http in a tag and if a link has &#8220;http&#8221; in it, JQuery opens the link in a NEW window.</p>
<p>According to W3C standards, the target attribute has been removed from <a href="http://www.w3.org/MarkUp/2004/xhtml-faq#target" target="_blank">xhtml 1.1 specification</a>. </p>
<p><strong>Sample script to open external links in New Window</strong></p>
<pre class="brush: php;">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB"&gt;
&lt;head&gt;
&lt;script src="js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script language="javascript"&gt;
$(document).ready(function(){
    $("a[href^='http']").attr('target','_blank');
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

Testing the pages - Open Links in new &lt;a href="http://yahoo.com"&gt;window&lt;/a&gt;.

&lt;h1>&lt;a href="http://www.kurinchilion.com"&gt;Kurinchilion&lt;/a&gt;&lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/09/how-to-open-all-external-web-sites-or-references-in-a-new-window.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cakePHP: Session enabled messages using Session-&gt;setFlash</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/06/cakephp-session-enabled-messages-using-session-setflash.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/06/cakephp-session-enabled-messages-using-session-setflash.html#comments</comments>
		<pubDate>Wed, 10 Jun 2009 03:28:37 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[UI, CSS]]></category>
		<category><![CDATA[cakePHP]]></category>
		<category><![CDATA[layouts]]></category>
		<category><![CDATA[Session messages]]></category>
		<category><![CDATA[Session SetFlash]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=410</guid>
		<description><![CDATA[There are different ways to flash or publish the messages for a user action. Usability plays a major role in determining how the navigation pattern for a web application takes place. publishing the outcome of user action on the same page designing a single page to flash all success, error, warning, notice level messages designing [...]]]></description>
			<content:encoded><![CDATA[<p>There are different ways to flash or publish the messages for a user action. Usability plays a major role in determining how the navigation pattern for a web application takes place.</p>
<ul>
<li>publishing the outcome of user action on the same page</li>
<li>designing a single page to flash all success, error, warning, notice level messages</li>
<li>designing a separate page for each message that gets published for the user</li>
</ul>
<p><span id="more-410"></span><br />
<strong>In CakePHP, to publish a message on the same page you need to make the following settings in the controller and view</strong></p>
<p><em>In the controller</em><br />
//app/controllers/posts_controller.php<br />
&lt;?php<br />
function add(){<br />
if ($this->Post->save($this->data)) {<br />
      $this->Session->setFlash(&#8216;Your post has been saved.&#8217;);<br />
      $this->redirect(&#8216;/posts&#8217;);<br />
   }<br />
}<br />
?&gt;</p>
<p><em>In the view</em></p>
<p>//app/views/posts/add.ctp<br />
&lt;?php<br />
   if ($session->check(&#8216;Message.flash&#8217;)){<br />
		 $session->flash();<br />
   }<br />
   echo $content_for_layout;<br />
?&gt;</p>
<p><strong>To design a single page to flash all success, error, warning, notice level messages follow the steps below</strong></p>
<p><em>In the controller</em><br />
//app/controllers/posts_controller.php<br />
&lt;?php<br />
function add(){<br />
if ($this->Post->save($this->data)) {<br />
      $this->Session->setFlash(&#8216;Your post has been saved.&#8217;, &#8216;general&#8217;);<br />
      $this->redirect(&#8216;/posts&#8217;);<br />
   }<br />
} //end of add<br />
?&gt;</p>
<p><em>In the view</em></p>
<p>//app/views/layouts/general.ctp<br />
&lt;?php<br />
   echo &#8220;Message :: &#8220;.$content_for_layout;<br />
?&gt;</p>
<p>To design a separate page for each message, it is the same as the above step.But instead of one template file, you will have separate file layout file in /app/views/layout like error.ctp, warning.ctp, notice.ctp and custom design these pages to show the respective messages.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/06/cakephp-session-enabled-messages-using-session-setflash.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

