<?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"
	>

<channel>
	<title>Vishal Kothari</title>
	<atom:link href="http://www.kotharivishal.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kotharivishal.com</link>
	<description>A bit of everything...</description>
	<pubDate>Sun, 25 Sep 2011 11:17:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Shadowbox Plugin - Videos &#038; Images in Lightbox</title>
		<link>http://www.kotharivishal.com/2011/09/24/shadowbox-plugin-videos-images-in-lightbox/</link>
		<comments>http://www.kotharivishal.com/2011/09/24/shadowbox-plugin-videos-images-in-lightbox/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 17:01:42 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Internet Explorer / Firefox Issues]]></category>

		<category><![CDATA[lightbox]]></category>

		<category><![CDATA[shadowbox]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=57</guid>
		<description><![CDATA[Recently I had to show Videos &#38; Images in a Lightbox. A year back I had shown Videos with Lightbox using FancyBox, but that was not a very clean approach. So this time I decided not to use that &#38; try something better.
I found out about Videobox. It is built only to show Videos in [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Recently I had to show Videos &amp; Images in a Lightbox. A year back I had shown Videos with Lightbox using FancyBox, but that was not a very clean approach. So this time I decided not to use that &amp; try something better.</p>
<p>I found out about <a title="Videobox" href="http://videobox-lb.sourceforge.net/" target="_blank">Videobox</a>. It is built only to show Videos in a lightbox. I tweaked it to also show images. It was working fine until I tested it in IE 8. Later I found out that this is an outdated lightbox application &amp; the last known updated to it was in 2007. When I heard this, I abandoned it at that very moment.</p>
<p>The next I found was <a title="Shadowbox.js" href="http://www.shadowbox-js.com/" target="_blank">Shadowbox.js</a>. The integration was very simple &amp; at the same time, compatible across all browsers. It was up &amp; running in 5 mins. Wow! Along with a free version, it also has a commercial license.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2011/09/24/shadowbox-plugin-videos-images-in-lightbox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>image setAttribute() does not work in IE 8</title>
		<link>http://www.kotharivishal.com/2011/09/22/image-setattribute-does-not-work-in-ie-8/</link>
		<comments>http://www.kotharivishal.com/2011/09/22/image-setattribute-does-not-work-in-ie-8/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 17:07:04 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Internet Explorer / Firefox Issues]]></category>

		<category><![CDATA[setAttribute]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=56</guid>
		<description><![CDATA[Blogging after almost 10 months&#8230;Whew&#8230;long time!
Today I was trying to resolve an issue wherein an image was being displayed dynamically, but it wasn&#8217;t visible in it&#8217;s proper width &#38; height only in IE 8.  The height &#38; width were being set by:
img.setAttribute(&#8221;width&#8221;,&#8221;50px&#8221;);
img.setAttribute(&#8221;height&#8221;,&#8221;50px&#8221;);
It didn&#8217;t take much time to resolve this issue. The issue was that IE [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Blogging after almost 10 months&#8230;Whew&#8230;long time!</p>
<p>Today I was trying to resolve an issue wherein an image was being displayed dynamically, but it wasn&#8217;t visible in it&#8217;s proper width &amp; height only in IE 8.  The height &amp; width were being set by:</p>
<blockquote><p>img.setAttribute(&#8221;width&#8221;,&#8221;50px&#8221;);</p>
<p>img.setAttribute(&#8221;height&#8221;,&#8221;50px&#8221;);</p></blockquote>
<p>It didn&#8217;t take much time to resolve this issue. The issue was that IE 8 (Not sure of other versions) didn&#8217;t like the above method of setting the width &amp; height. Instead, I had to use the below:</p>
<blockquote><p>img.style.width = &#8220;50px&#8221;;</p>
<p>img.style.height = &#8220;50px&#8221;;</p></blockquote>
<p>This worked like a charm in all browsers.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2011/09/22/image-setattribute-does-not-work-in-ie-8/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</title>
		<link>http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/</link>
		<comments>http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 18:05:19 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Internet Explorer / Firefox Issues]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=54</guid>
		<description><![CDATA[Problems with Internet Explorer don&#8217;t seem to have an end&#8230;Recently I came across a few problems while using IE 6 &#38; a few friends told me to &#8220;Screw that&#8221; and move on to IE 8 as it is much like Firefox with an inbuilt debugging tool &#38; ofcourse with lesser issues than IE 6. Trusting [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/' rel='bookmark' title='Permanent Link: &#8216;Object Expected&#8217; error in IE 6'>&#8216;Object Expected&#8217; error in IE 6</a></li><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li><li><a href='http://www.kotharivishal.com/2010/11/21/change-button-type-for-dynamic-buttons-in-ie-using-javascript/' rel='bookmark' title='Permanent Link: Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript'>Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Problems with Internet Explorer don&#8217;t seem to have an end&#8230;Recently I came across a few problems while using IE 6 &amp; a few friends told me to &#8220;Screw that&#8221; and move on to IE 8 as it is much like Firefox with an inbuilt debugging tool &amp; ofcourse with lesser issues than IE 6. Trusting them, I did move to IE 8.</p>
<p>But one problem that was persistent across both IE 6 &amp; IE 8 was a simple AJAX functionality that used to work in Firefox but not in IE 6 or IE 8.</p>
<p>I discovered that the AJAX call was working fine &amp; the response was also being returned same in both browsers, but the issue was while updating the element after getting the response. The element in question here was a table i.e. I had code like:</p>
<blockquote><p>&lt;table id=&#8217;id_to_update&#8217;&gt;</p></blockquote>
<p>It was giving me an error &#8220;Unknown runtime error&#8221;.</p>
<p>I was trying to find a solution to this &amp; found quite a few options like changing the case of XMLHTTP to XMLHttp, of trying to create an ActiveXObject before creating an XMLHTTP object. I tried all that, but didn&#8217;t work. Later I found that in IE, it is not possible to update a &#8216;table&#8217; content through &#8216;innerHTML&#8217;. It worked only after I put the table inside a &#8216;div&#8217;, so the code was:</p>
<blockquote><p>&lt;div id=&#8217;id_to_update&#8217;&gt;</p>
<p>&lt;table&gt;&#8230;.&lt;/table&gt;</p></blockquote>
<p>Where the &#8220;&lt;table&gt;, &lt;/table&gt;&#8221; part was the one that was being updated through AJAX.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/' rel='bookmark' title='Permanent Link: &#8216;Object Expected&#8217; error in IE 6'>&#8216;Object Expected&#8217; error in IE 6</a></li><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li><li><a href='http://www.kotharivishal.com/2010/11/21/change-button-type-for-dynamic-buttons-in-ie-using-javascript/' rel='bookmark' title='Permanent Link: Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript'>Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript</title>
		<link>http://www.kotharivishal.com/2010/11/21/change-button-type-for-dynamic-buttons-in-ie-using-javascript/</link>
		<comments>http://www.kotharivishal.com/2010/11/21/change-button-type-for-dynamic-buttons-in-ie-using-javascript/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 09:41:05 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Internet Explorer / Firefox Issues]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=53</guid>
		<description><![CDATA[Recently I was working on a piece of code where the requirement was to create buttons dynamically on click of another link/button. The code was:
var button1=document.createElement(&#8217;INPUT&#8217;);
button1.name =&#8217;button1_name&#8217;;
button1.setAttribute(&#8221;type&#8221;,&#8221;button&#8221;);
button1.setAttribute(&#8221;id&#8221;,&#8221;button1_id&#8221;);
button1.setAttribute(&#8221;value&#8221;,&#8221;Submit&#8221;);
The above code was working perfect in Firefox. However, in IE 6, this code did not create a button. It simply didn&#8217;t work! While trying to find a solution, [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/' rel='bookmark' title='Permanent Link: &#8216;Object Expected&#8217; error in IE 6'>&#8216;Object Expected&#8217; error in IE 6</a></li><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Recently I was working on a piece of code where the requirement was to create buttons dynamically on click of another link/button. The code was:</p>
<blockquote><p>var button1=document.createElement(&#8217;INPUT&#8217;);<br />
button1.name =&#8217;button1_name&#8217;;<br />
button1.setAttribute(&#8221;type&#8221;,&#8221;button&#8221;);<br />
button1.setAttribute(&#8221;id&#8221;,&#8221;button1_id&#8221;);<br />
button1.setAttribute(&#8221;value&#8221;,&#8221;Submit&#8221;);</p></blockquote>
<p>The above code was working perfect in Firefox. However, in IE 6, this code did not create a button. It simply didn&#8217;t work! While trying to find a solution, I came across a link that said while creating dynamic buttons through Javascript, the &#8216;type&#8217; attribute can&#8217;t be set dynamically using setAttribute() in IE 6. What needed in IE 6 was:</p>
<blockquote><p>var button1=document.createElement(&#8217;&lt;input type=&#8221;button&#8221; name=&#8221;button1_name&#8221; /&gt;&#8217;);</p></blockquote>
<p>The above code will also work for Firefox, thus to make it cross-browser, had to hard-code the tag as written above.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/' rel='bookmark' title='Permanent Link: &#8216;Object Expected&#8217; error in IE 6'>&#8216;Object Expected&#8217; error in IE 6</a></li><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li><li><a href='http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/' rel='bookmark' title='Permanent Link: Show table row (tr) using css'>Show table row (tr) using css</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2010/11/21/change-button-type-for-dynamic-buttons-in-ie-using-javascript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8216;Object Expected&#8217; error in IE 6</title>
		<link>http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/</link>
		<comments>http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 12:40:59 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Internet Explorer / Firefox Issues]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Internet Explorer 6]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Mozilla Firefox]]></category>

		<category><![CDATA[Object Expected]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=52</guid>
		<description><![CDATA[I was getting this strange error when I was trying to write a function as simple as asking for confirmation while deleting a particular record. On click of the &#8216;Delete&#8217; link, it used to give me this error &#8220;Object Expected&#8221; in IE 6.
The code that I had written before the error was like:
&#60;script language=&#8221;javascript&#8221; type=&#8221; [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/21/change-button-type-for-dynamic-buttons-in-ie-using-javascript/' rel='bookmark' title='Permanent Link: Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript'>Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript</a></li><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li><li><a href='http://www.kotharivishal.com/2010/01/06/48/' rel='bookmark' title='Permanent Link: SHTML Wrapper - 500 Server Error'>SHTML Wrapper - 500 Server Error</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I was getting this strange error when I was trying to write a function as simple as asking for confirmation while deleting a particular record. On click of the &#8216;Delete&#8217; link, it used to give me this error &#8220;Object Expected&#8221; in IE 6.</p>
<p>The code that I had written before the error was like:</p>
<blockquote><p>&lt;script language=&#8221;javascript&#8221; type=&#8221; text/javascript&#8221;&gt;<br />
function deleteConfirmation(id)<br />
{<br />
var answer = confirm(&#8221;Are you sure you wish to delete this entry?&#8221;);</p>
<p>if (answer){<br />
location.href = &#8217;some url&#8217;;<br />
}<br />
else{<br />
return false;<br />
}<br />
}<br />
&lt;/script&gt;</p></blockquote>
<p>In the first glance, I am not sure how many of you will be able to point out what the error is. The code after correcting this error looks like:</p>
<blockquote><p>&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
function deleteConfirmation(id)<br />
{<br />
var answer = confirm(&#8221;Are you sure you wish to delete this entry?&#8221;);</p>
<p>if (answer){<br />
location.href = &#8217;some url&#8217;;<br />
}<br />
else{<br />
return false;<br />
}<br />
}<br />
&lt;/script&gt;</p></blockquote>
<p>Well, the difference between the two pieces of code lies in the first line:</p>
<blockquote><p>&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;</p></blockquote>
<p>The error was occurring as there was a space preceding in the value given in the &#8216;type&#8217; attribute. I removed the extra space before &#8220;text/javascript&#8221; and that&#8217;s all what it took to resolve this error. Oh yes, this error was occurring only in IE 6 &amp; not in Firefox.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/21/change-button-type-for-dynamic-buttons-in-ie-using-javascript/' rel='bookmark' title='Permanent Link: Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript'>Change button &#8216;type&#8217; for dynamic buttons in IE using Javascript</a></li><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li><li><a href='http://www.kotharivishal.com/2010/01/06/48/' rel='bookmark' title='Permanent Link: SHTML Wrapper - 500 Server Error'>SHTML Wrapper - 500 Server Error</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Show table row (tr) using css</title>
		<link>http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/</link>
		<comments>http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 11:47:42 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Internet Explorer / Firefox Issues]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=51</guid>
		<description><![CDATA[I was working on a piece of code in which I needed to hide a row (&#8217;tr&#8217;) on click of a link &#38; show it again on a similar event. Tried to achieve that using the usual display:none &#38; display:block methods.
That method gave me problems across browsers. Then I read somewhere that to show a [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li><li><a href='http://www.kotharivishal.com/2008/07/07/working-at-google-vs-working-at-microsoft/' rel='bookmark' title='Permanent Link: Working at Google vs. Working at Microsoft'>Working at Google vs. Working at Microsoft</a></li><li><a href='http://www.kotharivishal.com/2011/09/24/shadowbox-plugin-videos-images-in-lightbox/' rel='bookmark' title='Permanent Link: Shadowbox Plugin - Videos &#038; Images in Lightbox'>Shadowbox Plugin - Videos &#038; Images in Lightbox</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I was working on a piece of code in which I needed to hide a row (&#8217;tr&#8217;) on click of a link &amp; show it again on a similar event. Tried to achieve that using the usual display:none &amp; display:block methods.</p>
<p>That method gave me problems across browsers. Then I read somewhere that to show a tr using css, we could use:</p>
<p>style.display = &#8216;table-row&#8217;</p>
<p>This worked, but not across all browsers. Finally read somewhere that if we use:</p>
<p>style.display = &#8221;</p>
<p>This would make the browser take the default values whether it&#8217;s table-row or display:block. This one worked for both IE &amp; Firefox.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li><li><a href='http://www.kotharivishal.com/2008/07/07/working-at-google-vs-working-at-microsoft/' rel='bookmark' title='Permanent Link: Working at Google vs. Working at Microsoft'>Working at Google vs. Working at Microsoft</a></li><li><a href='http://www.kotharivishal.com/2011/09/24/shadowbox-plugin-videos-images-in-lightbox/' rel='bookmark' title='Permanent Link: Shadowbox Plugin - Videos &#038; Images in Lightbox'>Shadowbox Plugin - Videos &#038; Images in Lightbox</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2010/11/04/show-table-row-tr-using-css/feed/</wfw:commentRss>
		</item>
		<item>
		<title>setcookie() - able to set cookies but not access through $_COOKIE</title>
		<link>http://www.kotharivishal.com/2010/08/14/setcookie-able-to-set-cookies-but-not-access-through-_cookie/</link>
		<comments>http://www.kotharivishal.com/2010/08/14/setcookie-able-to-set-cookies-but-not-access-through-_cookie/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 15:12:55 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[cookie]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=50</guid>
		<description><![CDATA[Came across a strange problem today. I was setting a few cookies using the setcookie() and when trying to access them through $_COOKIE, they weren&#8217;t appearing in the array. The cookie is shown in browser but not accessible in $_COOKIE. Initially, I was just using:
setcookie(&#8221;cookie_name&#8221;,$cookie_value);
My script was residing in a folder &#8216;/abc&#8217; on the server, [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/01/06/48/' rel='bookmark' title='Permanent Link: SHTML Wrapper - 500 Server Error'>SHTML Wrapper - 500 Server Error</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Came across a strange problem today. I was setting a few cookies using the setcookie() and when trying to access them through $_COOKIE, they weren&#8217;t appearing in the array. The cookie is shown in browser but not accessible in $_COOKIE. Initially, I was just using:</p>
<p>setcookie(&#8221;cookie_name&#8221;,$cookie_value);</p>
<p>My script was residing in a folder &#8216;/abc&#8217; on the server, which is present in the document root. Then I had to change the above to:</p>
<p>setcookie(&#8221;cookie_name&#8221;,$cookie_value, time()+(86400*365), &#8220;/&#8221;, &#8220;.example.com&#8221;, 1);</p>
<p>I put in the expiry date as 1 year from today, put in the path of the document root i.e. &#8216;/&#8217; &amp; also made the cookie to be available on all subdomains on my main domain (by using a .) rather than only on www.</p>
<p>The above line also didn&#8217;t solve the problem. Finally, I turned the last argument from &#8216;1&#8242; to &#8216;0&#8242;. It specifies that the cookie will not be accessible by any scripting language &amp; hence PHP was unable to access the cookie, though it was appearing in the browser cookies. What solved the problem was:</p>
<p>setcookie(&#8221;cookie_name&#8221;,$cookie_value, time()+(86400*365), &#8220;/&#8221;, &#8220;.example.com&#8221;, 0);</p>
<p>Hope this helps. <img src='http://www.kotharivishal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/01/06/48/' rel='bookmark' title='Permanent Link: SHTML Wrapper - 500 Server Error'>SHTML Wrapper - 500 Server Error</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2010/08/14/setcookie-able-to-set-cookies-but-not-access-through-_cookie/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-04-04</title>
		<link>http://www.kotharivishal.com/2010/04/04/twitter-weekly-updates-for-2010-04-04/</link>
		<comments>http://www.kotharivishal.com/2010/04/04/twitter-weekly-updates-for-2010-04-04/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 13:30:00 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/2010/04/04/twitter-weekly-updates-for-2010-04-04/</guid>
		<description><![CDATA[
8 things execs hate about IT - http://www.siliconindia.com/shownews/Eight_things_execs_hate_about_IT-nid-66717.html?utm_campaign=Newsletter #
I think that&#8217;s very true&#8230; IT execs keep nagging the customers about requirements&#8230;always and most of the projects never feel completed.. #
Stuck in resolving an IE6 issue&#8230;Over 2 hours now spent behind that  But not giving up yet  #

Powered by Twitter Tools.


Related posts:Twitter Weekly Updates [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2009/09/06/twitter-weekly-updates-for-2009-09-06/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-06'>Twitter Weekly Updates for 2009-09-06</a></li><li><a href='http://www.kotharivishal.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-10-25'>Twitter Weekly Updates for 2009-10-25</a></li><li><a href='http://www.kotharivishal.com/2009/09/13/twitter-weekly-updates-for-2009-09-13/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-13'>Twitter Weekly Updates for 2009-09-13</a></li></ol>]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>8 things execs hate about IT - <a href="http://www.siliconindia.com/shownews/Eight_things_execs_hate_about_IT-nid-66717.html?utm_campaign=Newsletter" rel="nofollow">http://www.siliconindia.com/shownews/Eight_things_execs_hate_about_IT-nid-66717.html?utm_campaign=Newsletter</a> <a href="http://twitter.com/tovishalck/statuses/11410913330">#</a></li>
<li>I think that&#8217;s very true&#8230; IT execs keep nagging the customers about requirements&#8230;always and most of the projects never feel completed.. <a href="http://twitter.com/tovishalck/statuses/11410944799">#</a></li>
<li>Stuck in resolving an IE6 issue&#8230;Over 2 hours now spent behind that <img src='http://www.kotharivishal.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> But not giving up yet <img src='http://www.kotharivishal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <a href="http://twitter.com/tovishalck/statuses/11540368169">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2009/09/06/twitter-weekly-updates-for-2009-09-06/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-06'>Twitter Weekly Updates for 2009-09-06</a></li><li><a href='http://www.kotharivishal.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-10-25'>Twitter Weekly Updates for 2009-10-25</a></li><li><a href='http://www.kotharivishal.com/2009/09/13/twitter-weekly-updates-for-2009-09-13/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-13'>Twitter Weekly Updates for 2009-09-13</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2010/04/04/twitter-weekly-updates-for-2010-04-04/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SHTML Wrapper - 500 Server Error</title>
		<link>http://www.kotharivishal.com/2010/01/06/48/</link>
		<comments>http://www.kotharivishal.com/2010/01/06/48/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 18:03:05 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[fastcgi]]></category>

		<category><![CDATA[magento]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/?p=48</guid>
		<description><![CDATA[I was getting the above error when I moved my Magento installation from one host to Bluehost (Hostmonster). What I used to get was nothing on the screen with the error:
&#60;!&#8211; SHTML Wrapper - 500 Server Error &#8211;&#62;
appearing in the source of the page.
I tried various things like reinstalling the database, reinstalling Magento, tried to [...]


Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/' rel='bookmark' title='Permanent Link: &#8216;Object Expected&#8217; error in IE 6'>&#8216;Object Expected&#8217; error in IE 6</a></li><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I was getting the above error when I moved my Magento installation from one host to Bluehost (Hostmonster). What I used to get was nothing on the screen with the error:</p>
<p>&lt;!&#8211; SHTML Wrapper - 500 Server Error &#8211;&gt;</p>
<p>appearing in the source of the page.</p>
<p>I tried various things like reinstalling the database, reinstalling Magento, tried to see the logs I had access to. None of them worked.</p>
<p>Then I came across a link that said enabling FastCGI option for PHP would fix this. That&#8217;s exactly what I did &amp; the bug was fixed. The Magento installation then started working smoothly.</p>
<p>Strangely, I had come across a link that said disabling FastCGI will fix this, but that wasn&#8217;t the case.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2010/11/20/object-expected-error-in-ie-6/' rel='bookmark' title='Permanent Link: &#8216;Object Expected&#8217; error in IE 6'>&#8216;Object Expected&#8217; error in IE 6</a></li><li><a href='http://www.kotharivishal.com/2010/11/24/unknown-runtime-error-in-ie8-while-using-ajax/' rel='bookmark' title='Permanent Link: &#8220;Unknown runtime error&#8221; in IE8 while using ajax'>&#8220;Unknown runtime error&#8221; in IE8 while using ajax</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2010/01/06/48/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2009-10-25</title>
		<link>http://www.kotharivishal.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/</link>
		<comments>http://www.kotharivishal.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 12:30:00 +0000</pubDate>
		<dc:creator>Vishal</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kotharivishal.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/</guid>
		<description><![CDATA[
Explaining what twitter is to a friend&#8230; #

Powered by Twitter Tools.


Related posts:Twitter Weekly Updates for 2009-09-06Twitter Weekly Updates for 2009-09-02Twitter Weekly Updates for 2009-09-13


Related posts:<ol><li><a href='http://www.kotharivishal.com/2009/09/06/twitter-weekly-updates-for-2009-09-06/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-06'>Twitter Weekly Updates for 2009-09-06</a></li><li><a href='http://www.kotharivishal.com/2009/08/30/twitter-weekly-updates-for-2009-09-02/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-02'>Twitter Weekly Updates for 2009-09-02</a></li><li><a href='http://www.kotharivishal.com/2009/09/13/twitter-weekly-updates-for-2009-09-13/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-13'>Twitter Weekly Updates for 2009-09-13</a></li></ol>]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Explaining what twitter is to a friend&#8230; <a href="http://twitter.com/tovishalck/statuses/5044124925">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>


<p>Related posts:<ol><li><a href='http://www.kotharivishal.com/2009/09/06/twitter-weekly-updates-for-2009-09-06/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-06'>Twitter Weekly Updates for 2009-09-06</a></li><li><a href='http://www.kotharivishal.com/2009/08/30/twitter-weekly-updates-for-2009-09-02/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-02'>Twitter Weekly Updates for 2009-09-02</a></li><li><a href='http://www.kotharivishal.com/2009/09/13/twitter-weekly-updates-for-2009-09-13/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-09-13'>Twitter Weekly Updates for 2009-09-13</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.kotharivishal.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

