<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dev By Troy</title>
	<atom:link href="http://devbytroy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://devbytroy.wordpress.com</link>
	<description>Web Development - info, tutorials, questions, rants, and more</description>
	<lastBuildDate>Fri, 30 Dec 2011 16:14:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devbytroy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dev By Troy</title>
		<link>http://devbytroy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devbytroy.wordpress.com/osd.xml" title="Dev By Troy" />
	<atom:link rel='hub' href='http://devbytroy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Cross-Browser Inline-Block</title>
		<link>http://devbytroy.wordpress.com/2011/12/19/cross-browser-inline-block/</link>
		<comments>http://devbytroy.wordpress.com/2011/12/19/cross-browser-inline-block/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 06:15:16 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=161</guid>
		<description><![CDATA[Does it seriously need to be this hard to do what seems to be a simple thing? display: inline-block is really a cool thing, or is it? http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=161&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Does it seriously need to be this hard to do what seems to be a simple thing?</p>
<p>display: inline-block is really a cool thing, or is it?</p>
<p><a href="http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/">http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=161&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2011/12/19/cross-browser-inline-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript: change CSS</title>
		<link>http://devbytroy.wordpress.com/2011/11/04/javascript-change-css/</link>
		<comments>http://devbytroy.wordpress.com/2011/11/04/javascript-change-css/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 20:17:50 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=159</guid>
		<description><![CDATA[This is a simple script that will change the CSS of any object. You send the function the ID, the CSS attribute you want to change, and the value.. I actually struggled a bit with this as using dot syntax for the CSS attribute would not work. I had to use brackets. &#60;div id=&#8221;myDiv&#8221; onclick=&#8221;CSS_change(&#8216;myDiv&#8217;,'color&#8217;,'#ff0000&#8242;)&#8221;&#62;Change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=159&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a simple script that will change the CSS of any object.</p>
<p>You send the function the ID, the CSS attribute you want to change, and the value..</p>
<p>I actually struggled a bit with this as using dot syntax for the CSS attribute would not work. I had to use brackets.</p>
<p><span style="color:#993300;">&lt;div id=&#8221;myDiv&#8221; onclick=&#8221;CSS_change(&#8216;myDiv&#8217;,'color&#8217;,'#ff0000&#8242;)&#8221;&gt;Change Color&lt;/div&gt;</span></p>
<p><span style="color:#993300;">function CSS_change(ID, CSSATTRIB, VALUE)</span><br />
<span style="color:#993300;">{</span><br />
<span style="color:#993300;">    var obj_style = document.getElementById(ID).style;</span><br />
<span style="color:#993300;">    obj_style[CSSATTRIB] = VALUE;</span><br />
<span style="color:#993300;">}</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=159&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2011/11/04/javascript-change-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>setAttribute(&#8220;class&#8221;&#8230;&#8230; does not work in IE9</title>
		<link>http://devbytroy.wordpress.com/2011/06/27/setattributeclass-does-not-work-in-ie9/</link>
		<comments>http://devbytroy.wordpress.com/2011/06/27/setattributeclass-does-not-work-in-ie9/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 22:08:13 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=147</guid>
		<description><![CDATA[This does not work in IE9: var button_div_container = document.createElement(&#8220;div&#8221;); button_div_container.setAttribute(&#8216;class&#8217;, &#8216;button&#8217;); You must do it this way: var button_div_container = document.createElement(&#8220;div&#8221;); button_div_container.className = &#8220;button&#8221;; WTF?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=147&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>This does not work in IE9:</strong></p>
<p>var button_div_container = document.createElement(&#8220;div&#8221;);<br />
button_div_container.setAttribute(&#8216;class&#8217;, &#8216;button&#8217;);</p>
<p><strong>You must do it this way:</strong></p>
<p>var button_div_container = document.createElement(&#8220;div&#8221;);<br />
button_div_container.<strong>className</strong> = &#8220;button&#8221;;</p>
<p>WTF?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=147&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2011/06/27/setattributeclass-does-not-work-in-ie9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>PDF hosted on S3 not rendering in FireFox</title>
		<link>http://devbytroy.wordpress.com/2011/05/24/pdf-hosted-on-s3-not-rendering-in-firefox/</link>
		<comments>http://devbytroy.wordpress.com/2011/05/24/pdf-hosted-on-s3-not-rendering-in-firefox/#comments</comments>
		<pubDate>Tue, 24 May 2011 19:50:39 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=144</guid>
		<description><![CDATA[I was having a problem with a PDF document showing up in the browser. The PDF was on an Amazon S3 server and it was called from an HTML file. When I clicked on the link, the browser was blank. The URL looked correct. I checked that the permissions were correctly set for the PDF [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=144&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was having a problem with a PDF document showing up in the browser. The PDF was on an Amazon S3 server and it was called from an HTML file. When I clicked on the link, the browser was blank. The URL looked correct. </p>
<p>I checked that the permissions were correctly set for the PDF file on S3. They were.</p>
<p>I was using FireFox 4 on Win7, so I tried other browsers. IE 6, 7, 8, and Chrome all rendered the PDF correctly. </p>
<p>I opened the PDF in FireFox directly from my computer and it opened fine.</p>
<p>I uploaded the PDF to my person al site and it displayed properly in FireFox 4.</p>
<p>I read a few blogs that talked about the Metadata and setting the “Content-Type” in the Amazon Web Services Console. So I went there and I checked the PDF and it was already set to “application/pdf”. </p>
<p>After spinning my wheels a while longer I checked some of the other values in the “Content-Type” drop-down and did not see any other settings that would apply. So I set it back to “application/pdf” and for the hell of it, I hit “save”. Well that did it. The PDF now showed up?????</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=144&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2011/05/24/pdf-hosted-on-s3-not-rendering-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>How to prevent or allow directory listing?</title>
		<link>http://devbytroy.wordpress.com/2011/03/22/how-to-prevent-or-allow-directory-listing/</link>
		<comments>http://devbytroy.wordpress.com/2011/03/22/how-to-prevent-or-allow-directory-listing/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 19:27:24 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=139</guid>
		<description><![CDATA[Options +Indexes [The above line enables Directory listing.] Options –Indexes [The above disables directory listing for your web site.] http://www.besthostratings.com/articles/prevent-directory-listing.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=139&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Options +Indexes</p>
<p><strong>[The above line enables Directory listing.]</strong></p>
<p>Options –Indexes</p>
<p><strong>[The above disables directory listing for your web site.]</strong></p>
<p><a href="http://www.besthostratings.com/articles/prevent-directory-listing.html">http://www.besthostratings.com/articles/prevent-directory-listing.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=139&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2011/03/22/how-to-prevent-or-allow-directory-listing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>window.onload</title>
		<link>http://devbytroy.wordpress.com/2011/02/07/window-onload/</link>
		<comments>http://devbytroy.wordpress.com/2011/02/07/window-onload/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 16:26:01 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=136</guid>
		<description><![CDATA[function Hello() { alert(&#8216;Hello World!&#8221;); } window.onload=Hello; // DO NOT put the parenthesis next to the function name.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=136&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>function Hello()<br />
{<br />
alert(&#8216;Hello World!&#8221;);<br />
}<br />
window.onload=Hello; // DO NOT put the parenthesis next to the function name.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=136&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2011/02/07/window-onload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>phpinfo();</title>
		<link>http://devbytroy.wordpress.com/2011/01/10/phpinfo/</link>
		<comments>http://devbytroy.wordpress.com/2011/01/10/phpinfo/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 20:43:09 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=130</guid>
		<description><![CDATA[phpinfo();<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=130&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>phpinfo();</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=130&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2011/01/10/phpinfo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP/MySQL connect and select database</title>
		<link>http://devbytroy.wordpress.com/2010/11/10/phpmysql-connect-and-select-database/</link>
		<comments>http://devbytroy.wordpress.com/2010/11/10/phpmysql-connect-and-select-database/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 18:08:44 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=122</guid>
		<description><![CDATA[&#60;?php // the first part assigns all the MySQL/database login info to variables $server = &#8216;localhost&#8217;;  // This is the server URL. $un = &#8216;root&#8217;;  // This is the database user name. $db = &#8216;log&#8217;;   // This is the name of the database $pw = &#8221;;   // This is the database password // [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=122&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#800000;">&lt;?php</span></p>
<p><span style="color:#333333;">// the first part assigns all the MySQL/database login info to variables</span><br />
<span style="color:#800000;">$server = &#8216;localhost&#8217;;  <span style="color:#333333;">// This is the server URL.</span></span><br />
<span style="color:#800000;">$un = &#8216;root&#8217;;  <span style="color:#333333;">// This is the database user name.</span></span><br />
<span style="color:#800000;">$db = &#8216;log&#8217;;   <span style="color:#333333;">// This is the name of the database</span></span><br />
<span style="color:#800000;">$pw = &#8221;;   <span style="color:#333333;">// This is the database password</span></span></p>
<p><span style="color:#800000;">// Connect and select.</span></p>
<p><span style="color:#800000;">if ($dbc = @mysql_connect ($server, $un, $pw)) <span style="color:#333333;">// Connect MySQL</span></span><br />
<span style="color:#800000;"> {</span><br />
<span style="color:#800000;"> if (@mysql_select_db ($db)) <span style="color:#333333;">// Selects the database</span></span><br />
<span style="color:#800000;"> </span></p>
<p><span style="color:#800000;">{print (&#8216;  &lt;p&gt;The Database &#8220;&#8216;.$un.&#8217;&#8221; has been selected &lt;/p&gt;&#8217;);}</span></p>
<p><span style="color:#800000;"> else</span><br />
<span style="color:#800000;"> {die (&#8216;&lt;p&gt;Could not select Datebase &#8220;&#8216;.$un.&#8217;&#8221; &lt;b&gt;&#8217; . mysql_error() . &#8216;&lt;/b&gt;&lt;/p&gt;&#8217;);}</span><br />
<span style="color:#800000;"> } </span><br />
<span style="color:#800000;"> else</span><br />
<span style="color:#800000;"> {die (&#8216;&lt;p&gt;Could not connect to MySQL because: &lt;b&gt;&#8217; . mysql_error() . &#8216;&lt;/b&gt;&lt;/p&gt;&#8217;);}</span><br />
<span style="color:#800000;">?&gt;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=122&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2010/11/10/phpmysql-connect-and-select-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>JS get value of selection from form select</title>
		<link>http://devbytroy.wordpress.com/2010/10/03/js-get-value-of-selection-from-form-select/</link>
		<comments>http://devbytroy.wordpress.com/2010/10/03/js-get-value-of-selection-from-form-select/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 16:45:54 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=115</guid>
		<description><![CDATA[Here&#8217;s a short script to use if you need to get the value of a selection list on the fly. It uses the onChange event that is attached to the select form element. What I also wanted to achieve was to  have a select list with one option as &#8220;other&#8221;. If other is chosen, a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=115&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a short script to use if you need to get the value of a selection list on the fly. It uses the <strong><span style="color:#993300;">onChange</span></strong> event that is attached to the <span style="color:#993300;"><strong>select</strong></span> form element.</p>
<p>What I also wanted to achieve was to  have a select list with one option as &#8220;other&#8221;. If other is chosen, a text field will display to let the user enter text.</p>
<p><strong><span style="color:#993300;">&lt;html&gt;&lt;head&gt;<br />
&lt;title&gt;Select&lt;/title&gt;<br />
&lt;style&gt;#other {display:none;}&lt;/style&gt;<br />
&lt;script tyle=&#8221;text/javaScript&#8221;&gt;<br />
function selectListValue()<br />
{<br />
var Beatle  =  beatles_list.beatles_member.options[beatles_list.beatles_member.options.selectedIndex].value;<br />
if(Beatle == &#8216;other&#8217;)<br />
{document.getElementById(&#8216;other&#8217;).style.display=&#8217;block&#8217;;}<br />
else{document.getElementById(&#8216;other&#8217;).style.display=&#8217;none&#8217;;}<br />
}<br />
function TestDataCheck()<br />
{<br />
var Beatle  =  beatles_list.beatles_member.options[beatles_list.beatles_member.options.selectedIndex].value;;<br />
var Other  =  beatles_list.other.value;<br />
alert(Beatle+&#8217; &#8216;+Other);<br />
return false;<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
Choose a Beatle:&lt;br /&gt;<br />
&lt;form method=&#8221;POST&#8221; name=&#8221;beatles_list&#8221; onSubmit=&#8221;return TestDataCheck()&#8221;&gt;<br />
&lt;select size=&#8221;1&#8243; name=&#8221;beatles_member&#8221; onChange=&#8221;selectListValue()&#8221;&gt;<br />
&lt;option value=&#8221;john&#8221;&gt;john&lt;/option&gt;<br />
&lt;option value=&#8221;paul&#8221;&gt;paul&lt;/option&gt;<br />
&lt;option value=&#8221;george&#8221;&gt;george&lt;/option&gt;<br />
&lt;option value=&#8221;ringo&#8221;&gt;ringo&lt;/option&gt;<br />
&lt;option value=&#8221;other&#8221;&gt;other&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;<br />
&lt;div id=&#8221;other&#8221;&gt;Other:&lt;br /&gt;&lt;textarea name=&#8221;other&#8221;&gt;&lt;/textarea&gt;&lt;/div&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;submit&#8221; /&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;&lt;/html&gt;</span></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=115&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2010/10/03/js-get-value-of-selection-from-form-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS: input[type=&quot;text&quot;]</title>
		<link>http://devbytroy.wordpress.com/2010/09/22/css-inputtypetext/</link>
		<comments>http://devbytroy.wordpress.com/2010/09/22/css-inputtypetext/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 16:45:39 +0000</pubDate>
		<dc:creator>devbytroy</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://devbytroy.wordpress.com/?p=112</guid>
		<description><![CDATA[This nifty little CSS attribute selectors is clean way to style form input elements. FYI: It does not work in IE6. #form1 input[type="text"] { width:100px; } #form1 input[type="submit"] { width:auto; }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=112&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This nifty little CSS attribute selectors is clean way to style form input elements.</p>
<p>FYI: It does not work in IE6.</p>
<p>#form1 input[type="text"] {<br />
width:100px;<br />
}<br />
#form1 input[type="submit"] {<br />
width:auto;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devbytroy.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devbytroy.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devbytroy.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devbytroy.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devbytroy.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devbytroy.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devbytroy.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devbytroy.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devbytroy.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devbytroy.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devbytroy.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devbytroy.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devbytroy.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devbytroy.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devbytroy.wordpress.com&amp;blog=11323808&amp;post=112&amp;subd=devbytroy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devbytroy.wordpress.com/2010/09/22/css-inputtypetext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afeefc500c53b52556a65df7cf486028?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devbytroy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
