<?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>Things From the Net &#187; Web Development</title>
	<atom:link href="http://www.thingsfromthenet.com/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thingsfromthenet.com</link>
	<description>My Little Corner of the Internet</description>
	<lastBuildDate>Mon, 06 Feb 2012 04:59:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress Navigation Menus</title>
		<link>http://www.thingsfromthenet.com/web-development/wordpress-fun/wordpress-navigation-menus/319/</link>
		<comments>http://www.thingsfromthenet.com/web-development/wordpress-fun/wordpress-navigation-menus/319/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 02:28:58 +0000</pubDate>
		<dc:creator>Jonathan Volks</dc:creator>
				<category><![CDATA[Wordpress Fun]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.thingsfromthenet.com/?p=319</guid>
		<description><![CDATA[While working on a large project today at work, I came across something that I have not done before within WordPress, create a navigation menu where the client (with no programming experience) would be able to easily add, update or delete navigation links. Previously I have always just hand coded a navigation menu within the [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a large project today at work, I came across something that I have not done before within WordPress, create a navigation menu where the client (with no programming experience) would be able to easily add, update or delete navigation links. Previously I have always just hand coded a navigation menu within the header.php file and if something needed to be changed then I would just change it in the code. But now the client will be adding their own pages and needed this ability.</p>
<p>Spending a half hour or so on WordPress Codex site, I figured out the very easy to implement navigation menu system. Below is a very quick, very basic how to,  if you have any questions leave them in the comment field and I&#8217;ll see what I can do to answer them.</p>
<p>Step 1) Register the menus with the theme. In your functions.php file add:<br />
<code>add_action('init','register_my_menus'); </code><br />
This will tell your WordPress theme it should be using Menus and will add &#8220;Menus&#8221; link under &#8220;Appearance&#8221;.</p>
<p>Step 2) Register menu(s) with the theme. Also in functions.php file add:<br />
<code>function register_my_menus() {<br />
&nbsp;&nbsp;&nbsp;register_nav_menus(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'header-navigation' =&gt; __( 'Categories Menu' ),<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'pages-menu' =&gt; __( 'Pages Menu' )<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br />
&nbsp;&nbsp;&nbsp;);<br />
}</code><br />
This is going to add 2 menu options to your theme locations, Categories Menu and Pages Menu.</p>
<p>Step 3) Add menu output to your theme code.<br />
<code>&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'header-navigation' ) ); ?&gt;</code><br />
This goes to your header.php, footer.php, etc. By default it will output in an unordered list.</p>
<p><a href="http://www.thingsfromthenet.com/wp-content/uploads/2011/08/2011-08-18_2116.png"><img class="alignright size-thumbnail wp-image-324" title="2011-08-18_2116" src="http://www.thingsfromthenet.com/wp-content/uploads/2011/08/2011-08-18_2116-150x150.png" alt="" width="150" height="150" /></a>Step 4) Create your menus and assign them to your theme locations. Creating a menu if simple, just go to the menu link within the admin and follow the forms. There is many options to add navigation links. Also assign the menu you created to the correct theme location.</p>
<p>That is it. There is a lot of options that can be done with menus, for a full list of them visit the <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu" target="_blank">WordPress Codex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thingsfromthenet.com/web-development/wordpress-fun/wordpress-navigation-menus/319/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Mobile Website</title>
		<link>http://www.thingsfromthenet.com/web-development/creating-mobile-website/242/</link>
		<comments>http://www.thingsfromthenet.com/web-development/creating-mobile-website/242/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 08:35:39 +0000</pubDate>
		<dc:creator>Jonathan Volks</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.jvolks.com/?p=242</guid>
		<description><![CDATA[A few months ago I was tasked with building a mobile website for a client at work. Even though I have been building websites for many years now, I haven&#8217;t had the opportunity to build a mobile website. Now the site I was building wasn&#8217;t a full replica of the main website but just a [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I was tasked with building a mobile website for a client at work. Even though I have been building websites for many years now, I haven&#8217;t had the opportunity to build a mobile website. Now the site I was building wasn&#8217;t a full replica of the main website but just a small portion that only had a search function. So I didn&#8217;t need to mess around with different style sheets.<span id="more-242"></span></p>
<p>After talking with co-workers and doing some research online, I actually found out that it is much simpler than I had thought. Now the biggest thing is to create a site that works in all major phones, iPhone, Android and Blackberry. All three major phones have different widths and how do you accommodate when you turn the phone sideways. The first part to handling this is a simple meta code within the &lt;head&gt; tag.</p>
<p>&lt;meta content=&#8221;minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no&#8221; name=&#8221;viewport&#8221; /&gt;</p>
<p>Adding this to your mobile website will allow for your site to auto adjust to the correct size. Without this code, you will have to use the zoom button in order to look at the site. With the code it will appear to look normal.</p>
<p>Now that is just the first step, after that comes the hard part. Playing with your CSS to make it look nice. I&#8217;m not going to go into a lot of detail on it but some things that you will need to keep in mind is that a lot of your widths will need to be 100%. If you specify a certain width, especially the main layout then it will look different on different phones. Good luck and have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thingsfromthenet.com/web-development/creating-mobile-website/242/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping Session Alive with jQuery</title>
		<link>http://www.thingsfromthenet.com/web-development/keeping-session-alive-with-jquery/186/</link>
		<comments>http://www.thingsfromthenet.com/web-development/keeping-session-alive-with-jquery/186/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 05:16:22 +0000</pubDate>
		<dc:creator>Jonathan Volks</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://www.jvolks.com/?p=186</guid>
		<description><![CDATA[A while ago I wrote a Coldfusion application that essentially was just a multi-page form. A scenario popped up where users might sit on a page for a long time to answer questions. Specifically more than 20 minutes. Unfortunately, I was unable to change the session timeout within the Application.cfc file due to other conflicts [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I wrote a Coldfusion application that essentially was just a multi-page form. A scenario popped up where users might sit on a page for a long time to answer questions. Specifically more than 20 minutes. Unfortunately, I was unable to change the session timeout within the Application.cfc file due to other conflicts it may cause.<span id="more-186"></span></p>
<p>I was stumped on what to do until a colleague just happened to stumble across a blog posting by <a href="http://www.bpurcell.org" target="_blank">Brandon Purcell</a>. To resolve my dilemma, jQuery is going to be used to keep the session open as long as the user keeps the page open.</p>
<p>The first step is to create an empty Coldfusion page. Why empty? Just to be sure nothing on the page causes it to hang up. Next, we setup jQuery to call this page every X amount of seconds (just make sure its under your session timeout). The only thing you will need is jQuery. Note that some people like to refresh variable into their scripting language variable but I left it out of this as I wanted to make it friendly to any programming language.</p>
<blockquote><p>&lt;script src=&#8221;/js/jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function(){<br />
setTimeout(&#8220;callserver()&#8221;,6000);<br />
});</p>
<p>function callserver() {<br />
var remoteURL = &#8216;/emptypage.cfm&#8217;;<br />
$.get(remoteURL,  function(data) { setTimeout(&#8220;callserver()&#8221;,6000); });<br />
}<br />
&lt;/script&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thingsfromthenet.com/web-development/keeping-session-alive-with-jquery/186/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

