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

<channel>
	<title>Apache Archives - rweber.net</title>
	<atom:link href="https://www.rweber.net/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.rweber.net/tag/apache/</link>
	<description>trying to be a mile wide AND a mile deep</description>
	<lastBuildDate>Sat, 16 Dec 2017 01:51:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">37896774</site>	<item>
		<title>Folders named &#8216;icons,&#8217; click handlers, and a new repo</title>
		<link>https://www.rweber.net/developer-toolbox/folders-named-icons-click-handlers-new-repo/</link>
					<comments>https://www.rweber.net/developer-toolbox/folders-named-icons-click-handlers-new-repo/#respond</comments>
		
		<dc:creator><![CDATA[Rebecca]]></dc:creator>
		<pubDate>Mon, 12 Oct 2015 16:00:46 +0000</pubDate>
				<category><![CDATA[Developer Toolbox]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[jQuery]]></category>
		<guid isPermaLink="false">http://www.rweber.net/?p=39163</guid>

					<description><![CDATA[<div><img width="275" height="300" src="https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-275x300.png" class="attachment-medium size-medium wp-post-image" alt="illustration of lottery number balls in a globe" style="float:left; margin-right:16px; margin-bottom:16px;" decoding="async" fetchpriority="high" srcset="https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-275x300.png 275w, https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-768x837.png 768w, https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280.png 940w, https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-138x150.png 138w" sizes="(max-width: 275px) 100vw, 275px" /></div>
<p>Two things I&#8217;ve learned recently: Don&#8217;t use &#8220;icons&#8221; as a folder name in a website directory if you&#8217;re on Apache. Everything inside will 404. Apparently Apache aliases any directory named icons to its own icons directory by default with no .htaccess override allowed. This falls into the &#8220;but why did it work on my computer?&#8221; [&#8230;]</p>
<p>The post <a href="https://www.rweber.net/developer-toolbox/folders-named-icons-click-handlers-new-repo/">Folders named &#8216;icons,&#8217; click handlers, and a new repo</a> appeared first on <a href="https://www.rweber.net">rweber.net</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img width="275" height="300" src="https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-275x300.png" class="attachment-medium size-medium wp-post-image" alt="illustration of lottery number balls in a globe" style="float:left; margin-right:16px; margin-bottom:16px;" decoding="async" srcset="https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-275x300.png 275w, https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-768x837.png 768w, https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280.png 940w, https://www.rweber.net/wp-content/uploads/2015/10/lottery-146318_1280-138x150.png 138w" sizes="(max-width: 275px) 100vw, 275px" /></div><p>Two things I&#8217;ve learned recently:</p>
<ol>
<li>Don&#8217;t use &#8220;icons&#8221; as a folder name in a website directory if you&#8217;re on Apache. Everything inside will 404. Apparently <a href="http://www.electrictoolbox.com/apache-icons-directory/">Apache aliases <em>any</em> directory named icons to its own icons directory by default</a> with no .htaccess override allowed. This falls into the &#8220;but why did it work on my computer?&#8221; category, since I didn&#8217;t change any defaults when I installed MAMP.</li>
<li>If you&#8217;re dynamically adding elements to a webpage and you want JavaScript (with jQuery) to react to clicks on them, you can&#8217;t use <code>$('.desired-class').click(function(e) { &hellip; });</code> &#8211; <a href="http://stackoverflow.com/questions/20754002/click-jquery-is-not-working/20754342#20754342">that will only bind clicks to elements that already exist when the JavaScript is loaded</a>. Instead, you need to bind a click handler to the entire page: <code>$(document).on('click', '.desired-class', function(e) { &hellip; });</code></li>
</ol>
<p>In other news, I added a new repo to Github over the weekend: a <a href="https://github.com/ReveWeber/doorprize">door prize program</a>. We designed it for the Boston Small Business Expo as a way to entice people to give us their email addresses. It requires name and email, allows organization and phone number, and has a function to draw three winners and also export all entrants as a CSV file. If you want to use it and have questions around adapting it, let me know!</p>
<p><small>Lottery number globe from <a href="https://pixabay.com/en/lottery-lotto-sphere-luck-win-146318/">Pixabay</a>.</small></p>
<p>The post <a href="https://www.rweber.net/developer-toolbox/folders-named-icons-click-handlers-new-repo/">Folders named &#8216;icons,&#8217; click handlers, and a new repo</a> appeared first on <a href="https://www.rweber.net">rweber.net</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.rweber.net/developer-toolbox/folders-named-icons-click-handlers-new-repo/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">39163</post-id>	</item>
	</channel>
</rss>
