<?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>Lemon and Lime Design</title>
	<atom:link href="http://www.lemonandli.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lemonandli.me</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 17 Mar 2010 12:19:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New Site on the way</title>
		<link>http://www.lemonandli.me/uncategorized/new-site-on-the-way/</link>
		<comments>http://www.lemonandli.me/uncategorized/new-site-on-the-way/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:53:06 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lemonandli.me/?p=191</guid>
		<description><![CDATA[A new site is on the way so please excuse a delay in updates or posts, I am hoping to have everything completed by mid February . So until then here are some new sites that  I have been working on: 
Escape Beauty Salon
Yvonne Maher Make up artist
Leonie's Fashion Boutique
Fitness Freak
Tom Geraghty Tyres
Ti Adora [...]]]></description>
			<content:encoded><![CDATA[<p>A new site is on the way so please excuse a delay in updates or posts, I am hoping to have everything completed by mid February . So until then here are some new sites that  I have been working on: </p>
<p><a href = "http://www.escapebeautysalon.ie">Escape Beauty Salon</a><br />
<a href="http://www.yvonnemaher.com">Yvonne Maher Make up artist</a><br />
<a href = "http://www.leonies.ie">Leonie's Fashion Boutique</a><br />
<a href="http://www.fitnessfreak.ie">Fitness Freak</a><br />
<a href="http://www.tomgeraghtytyres.com">Tom Geraghty Tyres</a><br />
<a href="http://www.tiadorabrides.com">Ti Adora Bridal Shop</a></p>
<p>and more will be added shortly, and you can also view the recent work section for more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lemonandli.me/uncategorized/new-site-on-the-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an AJAX Contact Form</title>
		<link>http://www.lemonandli.me/ajax/creating-an-ajax-contact-form/</link>
		<comments>http://www.lemonandli.me/ajax/creating-an-ajax-contact-form/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 11:53:22 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lemonandli.me/?p=111</guid>
		<description><![CDATA[There are many libraries available for javascript that make ajax requests very simple, you can create requests in just a couple of lines of code but sometines it is nice to write your own. The main use for AJAX is to give quick responses to the user without the need for a page refresh or [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">There are many libraries available for javascript that make ajax requests very simple, you can create requests in just a couple of lines of code but sometines it is nice to write your own. The main use for AJAX is to give quick responses to the user without the need for a page refresh or being redirected to a new page.</p>
<p style="text-align: left;">In this contact form there will be three fields: Name, Email and the message. The values from the fields will be sent to a PHP script and tested. The results will be sent back dynamically to the user. So let's get started.</p>
<p><span id="more-111"></span></p>
<p style="text-align: left;">First, create a html page and we will add a html form containing the 3 fields and the a submit button.</p>
<p style="text-align: left;">The code for the form is as follows:</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">&quot;scripts/contactsend.php&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">&lt;label</span></a> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Name<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">&lt;label</span></a> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;email&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Email<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">&lt;label</span></a> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;info&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Comment<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><a href="http://december.com/html/4/element/textarea.html"><span style="color: #000000; font-weight: bold;">&lt;textarea</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;info&quot;</span> <span style="color: #000066;">cols</span>=<span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #000066;">rows</span>=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;info&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/textarea&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;contact-loader&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">onclick</span>=<span style="color: #ff0000;">&quot;sendContact();&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span>
&nbsp;</pre>
<p><br class="spacer_" /></p>
<p>The result will be a simple form that looks like this:</p>
<p><br class="spacer_" /></p>
<p><img class="size-medium wp-image-117" style="border: 1px solid grey;" title="form-png" src="http://www.lemonandli.me/wp-content/uploads/2009/05/form-png-297x300.png" alt="Simple Contact Form Image" width="297" height="300" /></p>
<p><br class="spacer_" /></p>
<p>The next step is to write the JavaScript, to keep it tidy it is better to create a new .js file and just add a link to it in the head of the html file.</p>
<p>The first function is the one called from our form in the html page, this simply sets a timeout of 1 second and shows an image to let the user know something is happening. You can generate an animated loader gif <a href = http://www.ajaxload.info/">at ajaxload.info</a>. It also calls the main JavaScript function called 'ajaxContact' :</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> sendContact<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
  window.<span style="color: #006600;">setTimeout</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;ajaxContact()&quot;</span>, <span style="color: #CC0000;">1000</span><span style="color: #66cc66;">&#41;</span>;
  document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;contact-loader&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span> =
   <span style="color: #3366CC;">'&lt;img src=&quot;images/ajax-loader.gif&quot; alt=&quot;loading&quot; /&gt;
   checking details... '</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><br class="spacer_" /></p>
<p>The next function does all the work.</p>
<p>Here is the code that will need and after I will explain it line by line:</p>
<p><br class="spacer_" /></p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> ajaxContact<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>	
&nbsp;
   <span style="color: #000066; font-weight: bold;">try</span>
   <span style="color: #66cc66;">&#123;</span>
    <span style="color: #009900; font-style: italic;">// Firefox, Opera 8.0+, Safari</span>
    xmlHttp=<span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
   <span style="color: #66cc66;">&#125;</span>
   <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#123;</span>
   <span style="color: #009900; font-style: italic;">// Internet Explorer</span>
  <span style="color: #000066; font-weight: bold;">try</span>
  <span style="color: #66cc66;">&#123;</span>
     xmlHttp=<span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Msxml2.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">&#41;</span>
   <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">try</span>
    <span style="color: #66cc66;">&#123;</span>
     	xmlHttp=<span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Your browser does not support AJAX!&quot;</span><span style="color: #66cc66;">&#41;</span>;
      	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>;
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
 <span style="color: #66cc66;">&#125;</span>
&nbsp;
 <span style="color: #003366; font-weight: bold;">var</span> email = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'email'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span>;
 <span style="color: #003366; font-weight: bold;">var</span> <span style="color: #000066;">name</span> = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'name'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span>;
 <span style="color: #003366; font-weight: bold;">var</span> info = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'info'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span>;
&nbsp;
 xmlHttp.<span style="color: #006600;">onreadystatechange</span>=<span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
 <span style="color: #66cc66;">&#123;</span>
&nbsp;
   <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>xmlHttp.<span style="color: #006600;">readyState</span>==<span style="color: #CC0000;">4</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
&nbsp;
    document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;contact-info&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span> =
        xmlHttp.<span style="color: #006600;">responseText</span>;
&nbsp;
   <span style="color: #66cc66;">&#125;</span>
 <span style="color: #66cc66;">&#125;</span>
xmlHttp.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;GET&quot;</span>,<span style="color: #3366CC;">&quot;sendcontact.php?email=&quot;</span>+email+
<span style="color: #3366CC;">&quot;&amp;amp;name=&quot;</span>+<span style="color: #000066;">name</span>+<span style="color: #3366CC;">&quot;&amp;amp;info=&quot;</span>+info,<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
  	xmlHttp.<span style="color: #006600;">send</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p>Because Internet Explorer handles a request differently to modern browsers like Safari or Firefox we need to check which browser is being used.</p>
<p>The next step is simply getting the information from the html form. We get the values for each field and assign them to variables.</p>
<p>Next is checking the ready state of the page. There are 5 states that the page will be in as the page is requested.</p>
<p><br class="spacer_" /></p>
<ul>
<li>» <strong> 0: </strong> Request is initialised </li>
<li>»  <strong>1:</strong> Request set up</li>
<li>»  <strong>2:</strong> Request sent</li>
<li>»  <strong>3:</strong> Request in Process</li>
<li>»  <strong>4:</strong> Complete</li>
</ul>
<p><br class="spacer_" /></p>
<p>Once we have reached ready state 4 we are ready to get our data.</p>
<p>Finally we send our data to our php script called sendcontact.php and return the result to our page.</p>
<p>Below is the PHP that we will need to receive and send our data</p>
<pre class="php">&nbsp;
&lt; ?php
   <span style="color: #0000ff;">$to</span> = <span style="color: #ff0000;">&quot;you@yoursite.com&quot;</span>;
   <span style="color: #0000ff;">$subject</span> = <span style="color: #ff0000;">&quot;Contact from website&quot;</span>;
   <span style="color: #0000ff;">$email</span> = <span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'email'</span><span style="color: #66cc66;">&#93;</span> ;
   <span style="color: #0000ff;">$info</span> = <span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'info'</span><span style="color: #66cc66;">&#93;</span> ;
   <span style="color: #0000ff;">$name</span> = <span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'name'</span><span style="color: #66cc66;">&#93;</span> ;
&nbsp;
    <span style="color: #0000ff;">$messages</span> = <span style="color: #ff0000;">'Contact:'</span>;
    <span style="color: #0000ff;">$messages</span> .= <span style="color: #ff0000;">'&lt;strong&gt;Name:  '</span>.<span style="color: #0000ff;">$name</span>;
    <span style="color: #0000ff;">$messages</span> .= <span style="color: #ff0000;">'&lt;strong&gt;Question:&lt;/strong&gt;  '</span>.<span style="color: #0000ff;">$info</span>;
&nbsp;
   <span style="color: #808080; font-style: italic;">//headers for the message</span>
   <span style="color: #0000ff;">$headers</span> .= <span style="color: #ff0000;">&quot;Content-Type: text/html; charset=iso-8859-1<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
   <span style="color: #0000ff;">$headers</span> .= <span style="color: #ff0000;">&quot;Content-Transfer-Encoding: 8bit<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
   <span style="color: #0000ff;">$headers</span> .= <span style="color: #ff0000;">&quot;&quot;</span>.<span style="color: #0000ff;">$messages</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
   <span style="color: #0000ff;">$headers</span> .= <span style="color: #ff0000;">&quot;--&quot;</span>.<span style="color: #0000ff;">$num</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
&nbsp;
   <span style="color: #0000ff;">$sent</span> = <a href="http://www.php.net/mail"><span style="color: #000066;">mail</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$to</span>, <span style="color: #0000ff;">$subject</span>, <span style="color: #0000ff;">$messages</span>, <span style="color: #0000ff;">$headers</span><span style="color: #66cc66;">&#41;</span> ;
&nbsp;
   <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$sent</span><span style="color: #66cc66;">&#41;</span>
   <span style="color: #66cc66;">&#123;</span><a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;Thank You&quot;</span>; <span style="color: #66cc66;">&#125;</span>
   <span style="color: #b1b100;">else</span>
   <span style="color: #66cc66;">&#123;</span><a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;We encountered an error sending your mail&quot;</span>; <span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p>And that's that, you now have a fully functional AJAX Contact form. If you have any questions or remarks, please leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lemonandli.me/ajax/creating-an-ajax-contact-form/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Google Maps with 2 URLs pointing to one website.</title>
		<link>http://www.lemonandli.me/how-to/using-google-maps-with-2-urls-pointing-to-one-website/</link>
		<comments>http://www.lemonandli.me/how-to/using-google-maps-with-2-urls-pointing-to-one-website/#comments</comments>
		<pubDate>Fri, 08 May 2009 12:03:51 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Google Maps]]></category>

		<guid isPermaLink="false">http://www.lemonandli.me/?p=97</guid>
		<description><![CDATA[

The Problem:
When you register for a google maps api key it can be only used with one URL. I have came across the problem with a number of sites that I have developed that the client wants 2 or more URLs and google maps integration. There is a very simple way to get around this [...]]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignleft size-medium wp-image-105" style="border: 0pt none; margin: 2px; float: left;" title="google-maps" src="http://www.lemonandli.me/wp-content/uploads/2009/05/googe-maps-300x148.jpg" alt="google-maps" width="267" height="131" /></strong></p>
<p><br class="spacer_" /></p>
<p><strong>The Problem:</strong></p>
<p>When you register for a google maps api key it can be only used with one URL. I have came across the problem with a number of sites that I have developed that the client wants 2 or more URLs and google maps integration. There is a very simple way to get around this with just a small piece of Javascript.</p>
<p><span id="more-97"></span> <strong></strong></p>
<p><br class="spacer_" /></p>
<p><strong>Solution:</strong></p>
<p>Firstly, <a title="google maps api key" href="http://code.google.com/apis/maps/signup.html">register your URLs</a> and get the API key for each and follow the steps provided on the introduction to get a map up and running.</p>
<p>Once you have it working for one URL then all is needed for the others to work is a simple piece of JavaScript code.</p>
<p><br class="spacer_" /></p>
<p><code><br />
 &lt;script type="text/javascript"&gt;</code></p>
<p><code><br />
 function checkURL(){<br />
 if(document.URL == 'http://www.yoursite.com/yourpage'){<br />
 locationKey = "key_for_one_url";<br />
 }<br />
 else{<br />
 locationKey = "key_for_other_URL";<br />
 }<br />
 var part1 = '&lt;script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=';</code></p>
<p>var part2 = '" type="text/javascript"&gt;'+ '';</p>
<p>document.write(part1+locationKey+part2);<br />
 }<br />
 checkURL();</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p>So Basically, all you have is a function that checks what URL is accessing the site and then switching the keys, we will look at it line by line.</p>
<p>Firstly, document.URL checks the URL of the accessed document, this returns the full URL.</p>
<p>Next, we declare the variables we will be using, I found it easier to break up the text.  'part1' is everything up to the declaring the key. After that we add the 'locationKey', the API key that needs to be used and the the final part of text, 'part2'.</p>
<p>The final step is to write the result to the document using document.write() and then call the function.</p>
<p>Hope this helps, leave a comment and let me know how you get on or if you have any more tips I would love to hear them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lemonandli.me/how-to/using-google-maps-with-2-urls-pointing-to-one-website/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Welcome to Lemon and Lime</title>
		<link>http://www.lemonandli.me/introduction/welcome-to-lemon-and-lime/</link>
		<comments>http://www.lemonandli.me/introduction/welcome-to-lemon-and-lime/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 19:28:30 +0000</pubDate>
		<dc:creator>Lemon and Lime</dc:creator>
				<category><![CDATA[introduction]]></category>
		<category><![CDATA[lemon and lime]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.lemonandli.me/?p=78</guid>
		<description><![CDATA[

Hi There, it has been a long time coming but eventually lemon and lime design is online. If you want to find out a bit about the company view the about page. You can also check out some of our recent work or contact us.
In this blog I will mainly be discussing the trials and [...]]]></description>
			<content:encoded><![CDATA[<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p>Hi There, it has been a long time coming but eventually lemon and lime design is online. If you want to find out a bit about the company view the <a href="http://www.lemonandli.me/about/">about page</a>. You can also check out some of our <a href="http://www.lemonandli.me/recent-work/">recent work</a> or <a href="http://www.lemonandli.me/contact-us/">contact us</a>.</p>
<p>In this blog I will mainly be discussing the trials and tribulations of being a freelance web developer living in Ireland. I will also be giving some tips and tricks to help others who are following in the same line of business.</p>
<p><br class="spacer_" /></p>
<p><span id="more-78"></span></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p>This is my first experience with WordPress and I am still putting the finishing touches on this site. If you see anything that needs to be changed please leave a comment below. I would also love to hear your thoughts on the site, so why not leave a comment?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lemonandli.me/introduction/welcome-to-lemon-and-lime/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
