<?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>umkk.eu &#187; programming</title>
	<atom:link href="http://umkk.eu/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://umkk.eu</link>
	<description>you can also go there !</description>
	<lastBuildDate>Fri, 25 Jun 2010 16:00:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Stepper motor controller</title>
		<link>http://umkk.eu/stepper-motor-controller/01/</link>
		<comments>http://umkk.eu/stepper-motor-controller/01/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:43:06 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[cnc]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=289</guid>
		<description><![CDATA[Hi, in this post i will explain the stepper motor controller, the "smart" part of the driver also called ROAR HB brain module.
There are a few things that should be noted here, this is not just a simple stepper controller it's a smart controller which can be easily updated and changed.
Some advantages of the driver [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi, in this post i will explain the stepper motor controller, the "smart" part of the driver also called ROAR HB brain module.</p>
<p>There are a few things that should be noted here, this is not just a simple stepper controller it's a smart controller which can be easily updated and changed.</p>
<p>Some advantages of the driver :</p>
<ul>
<li>more drive modes selectable by jumpers or program (normal, half step,  high torque)</li>
<li>power saving mode</li>
<li>ability to add temperature sensors, limit sensors to protect the machine</li>
</ul>
<p>The driver is built around a pic16f84 microcontroller, basically the circuit is a tension stabilizer, an oscillator for the pic microcontroller, some components to set pin B0 as interrupt and all the ports pins are connected to pins so they can be easily connected.</p>
<p><strong>WARNING</strong>: to create this you will need to program the pic microcontroller, and for that you need a programmer, you can see how to build one on this blog, here : <a href="http://umkk.eu/pic-16f84-jdm-programmer/03/" target="_self">pic 16f84 jdm programmer</a></p>
<p>Here is a picture with the final product :</p>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6333.jpg"><img class="size-medium wp-image-291" title="stepper driver front view" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6333-300x200.jpg" alt="stepper driver front view" width="300" height="200" /></a><p class="wp-caption-text">stepper driver front view</p></div>
<div id="attachment_292" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6337.jpg"><img class="size-medium wp-image-292" title="stepper driver back view" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6337-300x200.jpg" alt="stepper driver back view" width="300" height="200" /></a><p class="wp-caption-text">stepper driver back view</p></div>
<div id="attachment_294" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6562.jpg"><img class="size-medium wp-image-294" title="2 controllers in an 2 axis driver" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6562-300x249.jpg" alt="2 controllers in an 2 axis driver" width="300" height="249" /></a><p class="wp-caption-text">2 controllers in an 2 axis driver</p></div>
<p>For the pcb design i used the eagle software (great software) to create first a schematic then the board and then the print files,</p>
<p>here is the schematic :</p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1301.png"><img class="size-medium wp-image-295" title="Stepper controller schematic" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1301-300x258.png" alt="Stepper controller schematic" width="300" height="258" /></a><p class="wp-caption-text">Stepper controller schematic</p></div>
<p>The huge advantage for this is that you have all the port pins connected to pins, and all of them except the pin b0 (which is made to be kept low or high) can be used for anything.</p>
<p>In this case we have pins bo - tact, pin b1 - direction, pins b2- b5 as phases selection.</p>
<p>And now here are the designs for this schematic :</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1306.png"><img class="size-medium wp-image-301" title="bottom view" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1306-300x297.png" alt="bottom view" width="300" height="297" /></a><p class="wp-caption-text">bottom view</p></div>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_13061.png"><img class="size-medium wp-image-302" title="top view" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_13061-300x297.png" alt="top view" width="300" height="297" /></a><p class="wp-caption-text">top view</p></div>
<p>And here is the file ready to be printed, this file is at the actual dimensions :</p>
<div id="attachment_303" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/HB-brain-to-print-copy.jpg"><img class="size-medium wp-image-303" title="HB brain.brd" src="http://umkk.eu/wp-content/uploads/2010/01/HB-brain-to-print-copy-300x141.jpg" alt="stepper controller print" width="300" height="141" /></a><p class="wp-caption-text">stepper controller print</p></div>
<p>In the above image the top layer is already mirrored so all you have to do is print it and follow the instructions from this post : <a title="How to create PCB’s using toner transfer method" href="http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/" target="_self">How to create PCB’s using toner transfer method</a></p>
<p>All you have to do now is to program the pic, here is the compiled version : <a href="../wp-content/uploads/2010/01/vic.zip">Compiled program</a></p>
<p>The program is compiled using ccs compiler, if you are interested here is the  source code : <a href="http://umkk.eu/wp-content/uploads/2010/01/vic.c">source code</a></p>
<p>And this is is.... have fun.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/stepper-motor-controller/01/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller&amp;desc=Hi%2C%20in%20this%20post%20i%20will%20explain%20the%20stepper%20motor%20controller%2C%20the%20%22smart%22%20part%20of%20the%20driver%20also%20called%20ROAR%20HB%20brain%20module.%0D%0A%0D%0AThere%20are%20a%20few%20things%20that%20should%20be%20noted%20here%2C%20this%20is%20not%20just%20a%20simple%20stepper%20controller%20it%27s%20a%20smart%20controller%20which%20can%20be%20easily%20updated%20and%20changed.%0D%0A%0D%0ASome%20ad" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/stepper-motor-controller/01/&amp;t=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Stepper+motor+controller&amp;body=Link: http://umkk.eu/stepper-motor-controller/01/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%2C%20in%20this%20post%20i%20will%20explain%20the%20stepper%20motor%20controller%2C%20the%20%22smart%22%20part%20of%20the%20driver%20also%20called%20ROAR%20HB%20brain%20module.%0D%0A%0D%0AThere%20are%20a%20few%20things%20that%20should%20be%20noted%20here%2C%20this%20is%20not%20just%20a%20simple%20stepper%20controller%20it%27s%20a%20smart%20controller%20which%20can%20be%20easily%20updated%20and%20changed.%0D%0A%0D%0ASome%20ad" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/stepper-motor-controller/01/&amp;bm_description=Stepper+motor+controller&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/stepper-motor-controller/01/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Stepper+motor+controller+-+File: /data/app/webapp/functions.php<br />Line: 7<br />Message: Too many connections&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/stepper-motor-controller/01/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Mood light</title>
		<link>http://umkk.eu/mood-light/01/</link>
		<comments>http://umkk.eu/mood-light/01/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 18:46:47 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[c programming]]></category>
		<category><![CDATA[leds]]></category>
		<category><![CDATA[Light-emitting diode]]></category>
		<category><![CDATA[Lighting]]></category>
		<category><![CDATA[mood light]]></category>
		<category><![CDATA[RGB color model]]></category>
		<category><![CDATA[tricolor]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=268</guid>
		<description><![CDATA[I wanted to build this for o long time... and today I finally had the "mood" and the time to do it... it's a mood light created with a tricolor led and a laptop with a parallel port.
I did this to see what is required to create a mood light, because the plan is to [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I wanted to build this for o long time... and today I finally had the "mood" and the time to do it... it's a mood light created with a tricolor led and a laptop with a parallel port.<br />
I did this to see what is required to create a mood light, because the plan is to create one with a pic microcontroller and use it as a digital candle.<br />
Here is the youtube movie with it :<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/vKtDyY8Z22o&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/vKtDyY8Z22o&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>As you can see I created a paper cube and inserted the led into it to have a diffuse light, or else the 3 basic colors  will appear as 3 red circles, and we don't want that.</p>
<p>Here are some pictures too :</p>
<div id="attachment_275" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6466.jpg"><img class="size-medium wp-image-275" title="IMG_6466" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6466-300x199.jpg" alt="Mood light" width="300" height="199" /></a><p class="wp-caption-text">Mood light</p></div>
<div id="attachment_276" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6467.jpg"><img class="size-medium wp-image-276" title="mood ligt cube" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6467-300x199.jpg" alt="the paper cube inside which the led is inserted" width="300" height="199" /></a><p class="wp-caption-text">the paper cube inside which the led is inserted</p></div>
<div id="attachment_277" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6469.jpg"><img class="size-medium wp-image-277" title="IMG_6469" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6469-300x199.jpg" alt="the rgb led" width="300" height="199" /></a><p class="wp-caption-text">the rgb led</p></div>
<p>And if you are interested in building the paper cube here is the plan (print on an A4 sheet of paper) :</p>
<div id="attachment_279" class="wp-caption aligncenter" style="width: 222px"><a href="http://umkk.eu/wp-content/uploads/2010/01/cuba4.jpg"><img class="size-medium wp-image-279" title="paper_cube" src="http://umkk.eu/wp-content/uploads/2010/01/cuba4-212x300.jpg" alt="Paper cube" width="212" height="300" /></a><p class="wp-caption-text">Paper cube</p></div>
<p><strong>If you are interested here is some theory :</strong></p>
<p>Each color is build using 3 base colors : red, green and blue, the led has 4 pins, a comon one and one for each color, so you can individualy turn on and off each color, so we will use 4 pins from the paralel port.</p>
<p>In my program (which is not yet optimized) each component (rgb) can have a value between 0 and 255, to do this we have a huge while cycle where we show the colors, here is a diagram to make it easier.</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/13f62357-4b4a-43ca-be6b-2008dd6426cc/2010-01-02_2038.png"><img title="Diagram" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/13f62357-4b4a-43ca-be6b-2008dd6426cc/2010-01-02_2038.png" alt="Diagram" width="400" height="300" /></a><p class="wp-caption-text">Diagram</p></div>
<p>So from diagram is pretty clear, based on each color value we show that color an amount of time, as bigger the value, more the time and brighter the color, a resolution of 255 values for each color is more then enough for this case.</p>
<p>There are more things in the program, for example you can increase or decrease the value for each color using the keyboard to see how diferent colors look like.</p>
<p>Also from the setR, setG, setB functions you can customize what to do for each color, in case you use diferent pins i used pin0: red, pin1:common, pin2: blue, pin3: green, feel free to use any other combination but remember to change those functions.</p>
<p>Any questions are welcome.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/mood-light/01/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light&amp;desc=I%20wanted%20to%20build%20this%20for%20o%20long%20time...%20and%20today%20I%20finally%20had%20the%20%22mood%22%20and%20the%20time%20to%20do%20it...%20it%27s%20a%20mood%20light%20created%20with%20a%20tricolor%20led%20and%20a%20laptop%20with%20a%20parallel%20port.%0D%0AI%20did%20this%20to%20see%20what%20is%20required%20to%20create%20a%20mood%20light%2C%20because%20the%20plan%20is%20to%20create%20one%20with%20a%20pic%20microcontrol" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/mood-light/01/&amp;t=Mood+light" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Mood+light&amp;body=Link: http://umkk.eu/mood-light/01/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20wanted%20to%20build%20this%20for%20o%20long%20time...%20and%20today%20I%20finally%20had%20the%20%22mood%22%20and%20the%20time%20to%20do%20it...%20it%27s%20a%20mood%20light%20created%20with%20a%20tricolor%20led%20and%20a%20laptop%20with%20a%20parallel%20port.%0D%0AI%20did%20this%20to%20see%20what%20is%20required%20to%20create%20a%20mood%20light%2C%20because%20the%20plan%20is%20to%20create%20one%20with%20a%20pic%20microcontrol" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/mood-light/01/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/mood-light/01/&amp;bm_description=Mood+light&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/mood-light/01/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Mood+light+-+http://b2l.me/6hn7k&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/mood-light/01/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>jQuery popups wizard, web 2.0 ideea and usability</title>
		<link>http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/</link>
		<comments>http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 11:58:22 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[dialog wizards]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery dialog]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=199</guid>
		<description><![CDATA[in this post, which i'll try to keep it short i'll explain something about web 2.0 concept and how to make pop ups wizards with jQuery, by popup wizards i understand a series a popup, pretty much like the wizards on your desktop when you install an application.
Web 2.0 is more about user experience and [...]


Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>in this post, which i'll try to keep it short i'll explain something about web 2.0 concept and how to make pop ups wizards with jQuery, by popup wizards i understand a series a popup, pretty much like the wizards on your desktop when you install an application.</p>
<p>Web 2.0 is more about user experience and seeing the web as a platform, make the user feel like he is using a very complex, fast and easy to use at the same time application, and for that wizards are great.</p>
<p>In this tutorial i will explain the basic concepts and give an basic wizard example for user authentication and sign up, here is how i wanted the wizard to work :</p>
<div id="attachment_201" class="wp-caption aligncenter" style="width: 573px"><a href="http://umkk.eu/wp-content/uploads/2009/10/2009-10-23_1227.png"><img class="size-full wp-image-201" title="Wizard steps" src="http://umkk.eu/wp-content/uploads/2009/10/2009-10-23_1227.png" alt="Wizard steps" width="563" height="361" /></a><p class="wp-caption-text">Wizard steps</p></div>
<p>this wizard will only have 3 pop ups, here they are, to be more clear :</p>
<div class="wp-caption aligncenter" style="width: 327px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/97faf5c9-ebc6-4b39-982a-a2493f241c39/2009-10-23_1300.png"><img title="Wizard starts" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/97faf5c9-ebc6-4b39-982a-a2493f241c39/2009-10-23_1300.png" alt="Wizard starts" width="317" height="175" /></a><p class="wp-caption-text">Wizard starts</p></div>
<div class="wp-caption aligncenter" style="width: 329px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/5872c6ba-89fc-4a7f-9dfd-6331f9d54452/2009-10-23_1432.png"><img title="Login popup on wizard" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/5872c6ba-89fc-4a7f-9dfd-6331f9d54452/2009-10-23_1432.png" alt="Login popup on wizard" width="319" height="210" /></a><p class="wp-caption-text">Login popup on wizard</p></div>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 327px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/cfb00551-e914-42bd-9cf8-94a9eb3e2e77/2009-10-23_1433.png"><img title="Create account in wizard" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/cfb00551-e914-42bd-9cf8-94a9eb3e2e77/2009-10-23_1433.png" alt="Create account in wizard" width="317" height="313" /></a><p class="wp-caption-text">Create account in wizard</p></div>
<p>As you can see each popup is clear and you can navigate back and forward between them.</p>
<p>Now, some of the advantages of using those wizards :</p>
<ul>
<li>no extra html is loaded when the page loads, all popups are loaded dinamicaly</li>
<li>no extra load on browser to create all the popups at load time</li>
<li>all have the same style</li>
<li>they are very easy to open (just call a function with the popup name)</li>
<li>they are stored in a xml file and very easy to change</li>
<li>they are very user frendly</li>
<li>popups are destroyed on close so no extra load on browser</li>
</ul>
<p>There are also a lot o feature that i want to implement but they are missing...</p>
<p>So here how it's done in a few easy steps</p>
<p>1. make sure that you added jquery, and jqueryUI with the dialog functionality</p>
<p>2. create a custom jQuery theme, just in case you want to change the design at a later date.</p>
<p>3. create the function that loads and shows a popup,<a href="http://umkk.eu/wp-content/uploads/2009/10/popupManager.js"> here is the entire file</a>. Just make sure that you change the APP_URL in the file with the url to your project.</p>
<p>4. Create the php file which will send the data to the client (in my case that file is index.php) also you can send more parameters to that if you want only name is mandatory in my case, the name must be the same as the .xml file in which the popup is stored (i'll show the xml file later). Here is the php code which wil generate the data for the javascript part, this is json data :</p>
<pre class="php">&nbsp;
<span style="color: #0000ff;">$content</span> = <a href="http://www.php.net/file_get_contents"><span style="color: #000066;">file_get_contents</span></a> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;popups/&quot;</span>.<span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'name'</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #ff0000;">&quot;.xml&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$xml</span> =  <span style="color: #000000; font-weight: bold;">new</span> SimpleXMLElement<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$content</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$res</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'count'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #0000ff;">$vars</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'count'</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'title'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$xml</span>-&gt;<span style="color: #006600;">title</span>;
&nbsp;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$xml</span>-&gt;<span style="color: #006600;">body</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;{[&quot;</span>,<span style="color: #ff0000;">&quot;&lt;&quot;</span>,<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;]}&quot;</span>,<span style="color: #ff0000;">&quot;&gt;&quot;</span>,<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'buttons'</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$xml</span>-&gt;<span style="color: #006600;">buttons</span>-&gt;<span style="color: #006600;">button</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$button</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'buttons'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;label&quot;</span>=&gt;trim<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$button</span>-&gt;<span style="color: #006600;">label</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #ff0000;">&quot;action&quot;</span>=&gt;trim<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$button</span>-&gt;<span style="color: #006600;">action</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<a href="http://www.php.net/die"><span style="color: #000066;">die</span></a><span style="color: #66cc66;">&#40;</span>json_encode<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>As you can see here the xml files are stored in a separate folder to make them easier to organize. Also you need to have the simpleXML (php extension) installed on your server but this is there on 99% of the cases, so no need to worry.</p>
<p>5. The last thing is the xml file that will store the popup, this is my login popup :</p>
<pre class="xml">&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">'1.0'</span> <span style="color: #000066;">standalone</span>=<span style="color: #ff0000;">'yes'</span><span style="font-weight: bold; color: black;">?&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;content<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;body<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		{[div class='error' id='login_errors']}{[/div]}
		Enter your credentials here :
		{[form]}
			{[div class='form_line']}{[div class='form_label']}Username:{[/div]}{[input type='text' id='login_username' class='form_input'/]}{[/div]}
			{[div class='form_line']}{[div class='form_label']}Password:{[/div]}{[input type='password' id='login_password' class='form_input'/]}{[/div]}
		{[/form]}
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/body<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;title<span style="font-weight: bold; color: black;">&gt;</span></span></span>Login<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/title<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;buttons<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Login<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
				data = new Object();
&nbsp;
				data.action = &quot;User::auth&quot;;
				data.username = $('#login_username').val();
				data.password = $('#login_password').val();
				data.ajax = 1;
&nbsp;
				$.post(APP_URL+&quot;index.php&quot;,data,function(data){
					$('#login_errors').html(data.content);
				},&quot;json&quot;);
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Close<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;action<span style="font-weight: bold; color: black;">&gt;</span></span></span>$(this).dialog('close')<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Back<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
				DialogsManager.getInstance().loadDialog('auth_method');
				$(this).dialog('close');
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/buttons<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/content<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;</pre>
<p>One problem with this is that you can't use "&lt;" and "&gt;" in your xml so you need to replace them, i used "{[" and "]}" so a &lt;div&gt; now it's {[div]}.</p>
<p>And this is it, you should try it and let me know if there are any problems.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability&amp;desc=in%20this%20post%2C%20which%20i%27ll%20try%20to%20keep%20it%20short%20i%27ll%20explain%20something%20about%20web%202.0%20concept%20and%20how%20to%20make%20pop%20ups%20wizards%20with%20jQuery%2C%20by%20popup%20wizards%20i%20understand%20a%20series%20a%20popup%2C%20pretty%20much%20like%20the%20wizards%20on%20your%20desktop%20when%20you%20install%20an%20application.%0D%0A%0D%0AWeb%202.0%20is%20more%20about%20user%20experien" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;t=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability&amp;body=Link: http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A in%20this%20post%2C%20which%20i%27ll%20try%20to%20keep%20it%20short%20i%27ll%20explain%20something%20about%20web%202.0%20concept%20and%20how%20to%20make%20pop%20ups%20wizards%20with%20jQuery%2C%20by%20popup%20wizards%20i%20understand%20a%20series%20a%20popup%2C%20pretty%20much%20like%20the%20wizards%20on%20your%20desktop%20when%20you%20install%20an%20application.%0D%0A%0D%0AWeb%202.0%20is%20more%20about%20user%20experien" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;bm_description=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability+-+http://b2l.me/6hn7q&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Greasemonkey, create a options panel using jQuery</title>
		<link>http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/</link>
		<comments>http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 07:06:20 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[javascript cookie]]></category>
		<category><![CDATA[javascript json]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[mousehunt]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=181</guid>
		<description><![CDATA[Hi, this tutorial is also based on the mouse hunt script "facebook mousehunt improvements" created by me, and in this one i will explain how to create an options panel (only check boxes at this time) and save it.
Here is my final result with this script :
If you want to try this, remember to load [...]


Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_197" class="wp-caption aligncenter" style="width: 263px"><a href="http://umkk.eu/wp-content/uploads/2009/10/2009-10-22_1010.png"><img class="size-full wp-image-197" title="2009-10-22_1010" src="http://umkk.eu/wp-content/uploads/2009/10/2009-10-22_1010.png" alt="greasemonkey options panel with jquery" width="253" height="222" /></a><p class="wp-caption-text">greasemonkey options panel with jquery</p></div>
<p>Hi, this tutorial is also based on the mouse hunt script "facebook mousehunt improvements" created by me, and in this one i will explain how to create an options panel (only check boxes at this time) and save it.</p>
<p>Here is my final result with this script :</p>
<p>If you want to try this, remember to load jquery correctly as described in <a title="how to load jquery in greasemonkey" href="http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/" target="_self">this post</a> at number #4.</p>
<p>First of all, the data is saved in a cookie as JSON, i have an object where i save all my data and i save that object as JSON on a cookie. Because javascript does not know to convert an object to a json string i used a class which does that, the class is not created by me, I just use it as it is, here is the fie : <a href="http://umkk.eu/wp-content/uploads/2009/10/json.js">json </a><br />
I copied the content of the file inside my script so i don't have to load it remotely, anyway it's just a line <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , so you should also copy this at the beginning of your greasemonkey script.</p>
<p>As i said the data is saved as cookie, here is the functions which will create, and read a cookie :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> createCookie<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">name</span>,value,days<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>days<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> date = <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		date.<span style="color: #006600;">setTime</span><span style="color: #66cc66;">&#40;</span>date.<span style="color: #006600;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #66cc66;">&#40;</span>days*<span style="color: #CC0000;">24</span>*<span style="color: #CC0000;">60</span>*<span style="color: #CC0000;">60</span>*<span style="color: #CC0000;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #003366; font-weight: bold;">var</span> expires = <span style="color: #3366CC;">&quot;; expires=&quot;</span>+date.<span style="color: #006600;">toGMTString</span><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;">else</span> <span style="color: #003366; font-weight: bold;">var</span> expires = <span style="color: #3366CC;">&quot;&quot;</span>;
	document.<span style="color: #006600;">cookie</span> = <span style="color: #000066;">name</span>+<span style="color: #3366CC;">&quot;=&quot;</span>+value+expires+<span style="color: #3366CC;">&quot;; path=/&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> readCookie<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">name</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> nameEQ = <span style="color: #000066;">name</span> + <span style="color: #3366CC;">&quot;=&quot;</span>;
	<span style="color: #003366; font-weight: bold;">var</span> ca = document.<span style="color: #006600;">cookie</span>.<span style="color: #006600;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">';'</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000066; font-weight: bold;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i=<span style="color: #CC0000;">0</span>;i &amp;lt; ca.<span style="color: #006600;">length</span>;i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> c = ca<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
		<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #66cc66;">&#40;</span>c.<span style="color: #006600;">charAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>==<span style="color: #3366CC;">' '</span><span style="color: #66cc66;">&#41;</span> c = c.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">1</span>,c.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>c.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span>nameEQ<span style="color: #66cc66;">&#41;</span> == <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> c.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span>nameEQ.<span style="color: #006600;">length</span>,c.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">null</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Also in my program i read the cookie when the script starts so the data object "myData" in my case will be populated and available in the entire script :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> myData = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>readCookie<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_data&quot;</span><span style="color: #66cc66;">&#41;</span>!=<span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		myData = JSON.<span style="color: #006600;">parse</span><span style="color: #66cc66;">&#40;</span>readCookie<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_data&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #009900; font-style: italic;">//if there is no cookie we initialize it</span>
		initCookie<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>err<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	initCookie<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>In my case gm_pl_data is the name of the cookie in which i save the data. Here is the initCookie() function, this will just initialize the objects inside the myData object :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> initCookie <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	myData = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	myData.<span style="color: #006600;">allLogs</span> = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	myData.<span style="color: #006600;">allChese</span> = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	savePersistentData<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//will be valid 1000000 days</span>
<span style="color: #003366; font-weight: bold;">function</span> savePersistentData <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	createCookie<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_data&quot;</span>,JSON.<span style="color: #006600;">stringify</span><span style="color: #66cc66;">&#40;</span>myData<span style="color: #66cc66;">&#41;</span>,<span style="color: #CC0000;">1000000</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>I let in there all my init objects so io can see how to initialize them if you have more.  You can also notice the savePersistentData function which will update the cookie and save the persistent data <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Until here we only had generic information about how data is saved and the functions which save the data. Now I'll go in more details for the actual options panel. The panel is actually a div in which you can enter any thing you want, but the values of the check boxes will be saved  and their status restored when the page reloads.</p>
<p>So here is how my panel looks like :</p>
<pre class="javascript">jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Show the timer
&lt;input id=&quot;</span>gm_pl_check_show_timer<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Automaticaly sound the horn
&lt;input id=&quot;</span>gm_pl_check_sound_horn<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;&lt;strong&gt;Kings rewared options&lt;/strong&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Play youtube on kings reward
&lt;input id=&quot;</span>gm_pl_play_sound_on_reward<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Play midi on kings reward
&lt;input id=&quot;</span>gm_pl_play_sound_midi_on_reward<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Show alert on kings rewared
&lt;input id=&quot;</span>gm_pl_show_alert_on_reward<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	setOptions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container input&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</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>saveOptions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>in this case the id of the div inside which i enter the options is "gm_pl_options_container", and i you can see that setOptions() is called, this will set the default options for the check boxes based on the myData object, here's the code :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> setOptions <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #3366CC;">&quot;object&quot;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">for</span><span style="color: #66cc66;">&#40;</span>i <span style="color: #000066; font-weight: bold;">in</span> myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#&quot;</span>+i<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;checked&quot;</span>,myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p>In my case the options are saved in myData["options"] the myData object is the main script object and all the scripts data is saved there, not just the options.</p>
<p>And after the setOptions function is called we also have an intresting line, this will add an onclick function to each input on that div, and in this function we call saveOptions(), this function will get all the inputs in that div, and save the values in myData['options'] object, and also write the cookie to make sure that the values are not lost on page refresh :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> saveOptions <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>!<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #3366CC;">&quot;object&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	jQuery.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span>jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container input&quot;</span><span style="color: #66cc66;">&#41;</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>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">checked</span> == <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">id</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #003366; font-weight: bold;">true</span>;
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">else</span>
		<span style="color: #66cc66;">&#123;</span>
			myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">id</span><span style="color: #66cc66;">&#93;</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;">&#41;</span>;
	savePersistentData<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Every thing you have to do now is use those options, there are 2 ways to do this, you can check the status of the check box or you can get the value from the myData['options'] object, they are the same, i use the object :</p>
<pre class="javascript"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">'gm_pl_show_alert_on_reward'</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #003366; font-weight: bold;">true</span><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;You have a king's reward!&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span></pre>
<p>And this is it, if you have any questions let me know, and remember, if you use mouse hunt don't forget to use my script :<a href="http://userscripts.org/scripts/show/57446" target="_blank"> Facebook mousehunt improvements</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery&amp;desc=%0D%0A%0D%0AHi%2C%20this%20tutorial%20is%20also%20based%20on%20the%20mouse%20hunt%20script%20%22facebook%20mousehunt%20improvements%22%20created%20by%20me%2C%20and%20in%20this%20one%20i%20will%20explain%20how%20to%20create%20an%20options%20panel%20%28only%20check%20boxes%20at%20this%20time%29%20and%20save%20it.%0D%0A%0D%0AHere%20is%20my%20final%20result%20with%20this%20script%20%3A%0D%0A%0D%0AIf%20you%20want%20to%20try%20this%2C%20remember%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;t=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Greasemonkey%2C+create+a+options+panel+using+jQuery&amp;body=Link: http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0A%0D%0AHi%2C%20this%20tutorial%20is%20also%20based%20on%20the%20mouse%20hunt%20script%20%22facebook%20mousehunt%20improvements%22%20created%20by%20me%2C%20and%20in%20this%20one%20i%20will%20explain%20how%20to%20create%20an%20options%20panel%20%28only%20check%20boxes%20at%20this%20time%29%20and%20save%20it.%0D%0A%0D%0AHere%20is%20my%20final%20result%20with%20this%20script%20%3A%0D%0A%0D%0AIf%20you%20want%20to%20try%20this%2C%20remember%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;bm_description=Greasemonkey%2C+create+a+options+panel+using+jQuery&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Greasemonkey%2C+create+a+options+panel+using+jQuery+-+http://b2l.me/6hn7t&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</title>
		<link>http://umkk.eu/autoupdate-on-greasemonkey-script/10/</link>
		<comments>http://umkk.eu/autoupdate-on-greasemonkey-script/10/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 09:29:34 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[auto update]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mousehunt]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=153</guid>
		<description><![CDATA[As you can see on my previews post, i created a great mouse hunt script using grease monkey and jQuery, in this post i will explain how the update is done.
The idea behind this is, that the user will install the script and most probably will never go back and check if there is an [...]


Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As you can see on my previews post, i created a great mouse hunt script using grease monkey and jQuery, in this post i will explain how the update is done.</p>
<p>The idea behind this is, that the user will install the script and most probably will never go back and check if there is an update to that script, so you, the developer, will have to fix this problem for the user. I didn't wanted to automatically install software or updates on a users PC so i'm notifying the user that there is an update available, so he can install it by hand (only click on the link).</p>
<p>There are 2 parts for this, the Javascript part (inside the greasemokney script) and the server part (php in my case). The principle is simple, we have a variable inside the gresemonkey script which will contain the version of that script :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> cVersion = <span style="color: #3366CC;">&quot;1.14b&quot;</span>;</pre>
<p>and we have a function which will call an url giving that version as a parameter :</p>
<pre class="javascript"><span style="color: #009900; font-style: italic;">//check if a new version is availble.</span>
	GM_xmlhttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>
method: <span style="color: #3366CC;">'GET'</span>,
url: <span style="color: #3366CC;">'http://path.to.your.script.php?version='</span>+cVersion,
headers: <span style="color: #66cc66;">&#123;</span>
<span style="color: #3366CC;">'User-agent'</span>: <span style="color: #3366CC;">'Mozilla/4.0 (compatible) Greasemonkey'</span>,
<span style="color: #3366CC;">'Accept'</span>: <span style="color: #3366CC;">'application/atom+xml,application/xml,text/xml'</span>,
<span style="color: #66cc66;">&#125;</span>,
<span style="color: #000066;">onload</span>: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>responseDetails<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_version_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>responseDetails.<span style="color: #006600;">responseText</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>What this function does is pretty straight forward, will call an url (passing the script's version as a parameter) and put all the returning content (presumed html) inside a div.</p>
<p>Now, we have the server script, which we called earlier. This script also has a variable inside :</p>
<pre class="php"><span style="color: #0000ff;">$local_version</span> = <span style="color: #ff0000;">&quot;1.14b&quot;</span>;</pre>
<p>which contains the latest version of the script. This script is also pretty straight forward, will compare the latest version of the script, defined here, with the version provided as a parameter, and based on that will return an html, here is the entire script :</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$local_version</span> = <span style="color: #ff0000;">&quot;1.14b&quot;</span>;
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'version'</span><span style="color: #66cc66;">&#93;</span>!= <span style="color: #0000ff;">$local_version</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;
&lt;div style='padding:3px'&gt;
	A new version of this script is available.&lt;br&gt;
	Click &lt;a href='http://userscripts.org/scripts/source/57446.user.js'&gt;here to upgrade&lt;/a&gt;
	&lt;/div&gt;
&nbsp;
	&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;your script is up to date ($local_version)&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p>And this is it.<br />
If you don't want to use Jquery, no problem you will have to replace this :</p>
<pre class="javascript"> $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_version_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>responseDetails.<span style="color: #006600;">responseText</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>with :</p>
<pre class="javascript">document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_version_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span><span style="color: #66cc66;">&#40;</span>responseDetails.<span style="color: #006600;">responseText</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>where gm_pl_version_container is the id of the element where you want to insert the content.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/autoupdate-on-greasemonkey-script/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.&amp;desc=As%20you%20can%20see%20on%20my%20previews%20post%2C%20i%20created%20a%20great%20mouse%20hunt%20script%20using%20grease%20monkey%20and%20jQuery%2C%20in%20this%20post%20i%20will%20explain%20how%20the%20update%20is%20done.%0D%0A%0D%0AThe%20idea%20behind%20this%20is%2C%20that%20the%20user%20will%20install%20the%20script%20and%20most%20probably%20will%20never%20go%20back%20and%20check%20if%20there%20is%20an%20update%20to%20that%20s" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;t=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.&amp;body=Link: http://umkk.eu/autoupdate-on-greasemonkey-script/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A As%20you%20can%20see%20on%20my%20previews%20post%2C%20i%20created%20a%20great%20mouse%20hunt%20script%20using%20grease%20monkey%20and%20jQuery%2C%20in%20this%20post%20i%20will%20explain%20how%20the%20update%20is%20done.%0D%0A%0D%0AThe%20idea%20behind%20this%20is%2C%20that%20the%20user%20will%20install%20the%20script%20and%20most%20probably%20will%20never%20go%20back%20and%20check%20if%20there%20is%20an%20update%20to%20that%20s" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;bm_description=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/autoupdate-on-greasemonkey-script/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.%5B..%5D+-+http://b2l.me/6hmcD&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/autoupdate-on-greasemonkey-script/10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GreaseMonkey, Jquery and the greatest mouse hunt script.</title>
		<link>http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/</link>
		<comments>http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 06:35:09 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mousehunt]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=145</guid>
		<description><![CDATA[I started using mouse hunt a while ago... and really enjoy it, i loved when i got a new trap and i could buy more cheese, more traps... and craft more items, but as time passed along i got bored with that and I just wanted to catch as many mice as possible, and be [...]


Related posts:<ol><li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I started using mouse hunt a while ago... and really enjoy it, i loved when i got a new trap and i could buy more cheese, more traps... and craft more items, but as time passed along i got bored with that and I just wanted to catch as many mice as possible, and be fast in what i do, also i wanted to have a script that sounds the horn and let me know when a king's reward has appeared, so i decided to create my own mouse hunt script, the greatest mouse hunt script ever created...</p>
<p>I started working on ma spare time in this... was not easy because some things ware hard to test... bunt eventually i did it.</p>
<p>You can see the script here : http://userscripts.org/scripts/show/57446 the script has been around  for about a month and already has 1200 installs and going up, and it's becoming "the mouse hunt script" <img src='http://umkk.eu/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Now i will explain some of the problems i encountered on creating the script.</p>
<p>1. Saving persistent data, grease monkey does not have a very good way for this, so i decided to create an object where i save all the data and then save the object as JSON in a cookie</p>
<p>2. Updates, i was thinking that it would be nice to notify users when an update is available,  so i did this by creating a .php file in a server and store there the latest version number, the script checks that version with it's current version and if is different will show a message</p>
<p>3. Passing parameters on a function attached to an event, this was the most tricky one... was pretty complicated... here is the solution :</p>
<pre class="javascript">$.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;.huntername&quot;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span>i,o<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
			<span style="color: #003366; font-weight: bold;">var</span> id = <span style="color: #CC0000;">0</span>;
			<span style="color: #003366; font-weight: bold;">var</span> childs = $<span style="color: #66cc66;">&#40;</span>o<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">children</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #003366; font-weight: bold;">var</span> link = $<span style="color: #66cc66;">&#40;</span>childs<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #003366; font-weight: bold;">var</span> <span style="color: #000066;">name</span> = $<span style="color: #66cc66;">&#40;</span>childs<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			id = link.<span style="color: #006600;">substr</span><span style="color: #66cc66;">&#40;</span>link.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #CC0000;">+1</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			$<span style="color: #66cc66;">&#40;</span>o<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span>o<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #3366CC;">&quot;&lt;a id=&quot;</span>gmpl_af_&amp;quot;+i+&amp;quot;<span style="color: #3366CC;">&quot; onclick=&quot;</span><span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #3366CC;">&quot; href=&quot;</span>#<span style="color: #3366CC;">&quot;&gt;(add to links)&lt;/a&gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
			_e<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gmpl_af_&quot;</span>+i+<span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;click&quot;</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>gmpl_addFriend<span style="color: #66cc66;">&#40;</span>id,<span style="color: #000066;">name</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span>,<span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>4. How to use jquery in a grese monkey script, actually for this i fond the solution somewhere on the internet... : http://joanpiedra.com/jquery/greasemonkey/</p>
<pre class="javascript"><span style="color: #009900; font-style: italic;">// Add jQuery</span>
    <span style="color: #003366; font-weight: bold;">var</span> GM_JQ = document.<span style="color: #006600;">createElement</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #66cc66;">&#41;</span>;
    GM_JQ.<span style="color: #006600;">src</span> = <span style="color: #3366CC;">'http://jquery.com/src/jquery-latest.js'</span>;
    GM_JQ.<span style="color: #006600;">type</span> = <span style="color: #3366CC;">'text/javascript'</span>;
    document.<span style="color: #006600;">getElementsByTagName</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">appendChild</span><span style="color: #66cc66;">&#40;</span>GM_JQ<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #009900; font-style: italic;">// Check if jQuery's loaded</span>
    <span style="color: #003366; font-weight: bold;">function</span> GM_wait<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> unsafeWindow.<span style="color: #006600;">jQuery</span> == <span style="color: #3366CC;">'undefined'</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>GM_wait,<span style="color: #CC0000;">100</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span>
    <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span> $ = unsafeWindow.<span style="color: #006600;">jQuery</span>; letsJQuery<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span>
    <span style="color: #66cc66;">&#125;</span>
    GM_wait<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #009900; font-style: italic;">// All your GM code must be inside this function</span>
    <span style="color: #003366; font-weight: bold;">function</span> letsJQuery<span style="color: #66cc66;">&#40;</span><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: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">// check if the dollar (jquery) function works</span>
    <span style="color: #66cc66;">&#125;</span></pre>
<p>And all your code should go where the alert($) is. Only if you have some functions you should put them outside that function.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.&amp;desc=I%20started%20using%20mouse%20hunt%20a%20while%20ago...%20and%20really%20enjoy%20it%2C%20i%20loved%20when%20i%20got%20a%20new%20trap%20and%20i%20could%20buy%20more%20cheese%2C%20more%20traps...%20and%20craft%20more%20items%2C%20but%20as%20time%20passed%20along%20i%20got%20bored%20with%20that%20and%20I%20just%20wanted%20to%20catch%20as%20many%20mice%20as%20possible%2C%20and%20be%20fast%20in%20what%20i%20do%2C%20also%20i%20wanted%20to" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;t=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.&amp;body=Link: http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20started%20using%20mouse%20hunt%20a%20while%20ago...%20and%20really%20enjoy%20it%2C%20i%20loved%20when%20i%20got%20a%20new%20trap%20and%20i%20could%20buy%20more%20cheese%2C%20more%20traps...%20and%20craft%20more%20items%2C%20but%20as%20time%20passed%20along%20i%20got%20bored%20with%20that%20and%20I%20just%20wanted%20to%20catch%20as%20many%20mice%20as%20possible%2C%20and%20be%20fast%20in%20what%20i%20do%2C%20also%20i%20wanted%20to" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;bm_description=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.+-+http://b2l.me/6hkkv&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Testing my stepper motor driver and software</title>
		<link>http://umkk.eu/testing-my-controller-and-software/10/</link>
		<comments>http://umkk.eu/testing-my-controller-and-software/10/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 13:25:12 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[bipolar]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[Electric motors]]></category>
		<category><![CDATA[mottor]]></category>
		<category><![CDATA[Stepper]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[stepper mottor]]></category>
		<category><![CDATA[unipolar]]></category>
		<category><![CDATA[Unipolar motor]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=142</guid>
		<description><![CDATA[this is a simple test for a driver for stepper motors it uses a l298 IC and runs great, i'll post more details later.

and here is a unipolar motor controlled by the driver.

Also in this second video i use different sources for powering the circuit board and the power source for the motor.




		
			Subscribe to the [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>this is a simple test for a driver for stepper motors it uses a l298 IC and runs great, i'll post more details later.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/BekEfzePB9w&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BekEfzePB9w&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>and here is a unipolar motor controlled by the driver.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/dn5oFSkl1fk&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/dn5oFSkl1fk&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Also in this second video i use different sources for powering the circuit board and the power source for the motor.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/testing-my-controller-and-software/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/testing-my-controller-and-software/10/&amp;title=Testing+my+stepper+motor+driver+and+software" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/testing-my-controller-and-software/10/&amp;title=Testing+my+stepper+motor+driver+and+software" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/testing-my-controller-and-software/10/&amp;title=Testing+my+stepper+motor+driver+and+software&amp;desc=this%20is%20a%20simple%20test%20for%20a%20driver%20for%20stepper%20motors%20it%20uses%20a%20l298%20IC%20and%20runs%20great%2C%20i%27ll%20post%20more%20details%20later.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0Aand%20here%20is%20a%20unipolar%20motor%20controlled%20by%20the%20driver.%0D%0A%0D%0A%0D%0A%0D%0AAlso%20in%20this%20second%20video%20i%20use%20different%20sources%20for%20powering%20the%20circuit%20board%20and%20the%20power%20source%20for%20the%20m" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/testing-my-controller-and-software/10/&amp;t=Testing+my+stepper+motor+driver+and+software" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Testing+my+stepper+motor+driver+and+software&amp;body=Link: http://umkk.eu/testing-my-controller-and-software/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A this%20is%20a%20simple%20test%20for%20a%20driver%20for%20stepper%20motors%20it%20uses%20a%20l298%20IC%20and%20runs%20great%2C%20i%27ll%20post%20more%20details%20later.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0Aand%20here%20is%20a%20unipolar%20motor%20controlled%20by%20the%20driver.%0D%0A%0D%0A%0D%0A%0D%0AAlso%20in%20this%20second%20video%20i%20use%20different%20sources%20for%20powering%20the%20circuit%20board%20and%20the%20power%20source%20for%20the%20m" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/testing-my-controller-and-software/10/&amp;title=Testing+my+stepper+motor+driver+and+software" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/testing-my-controller-and-software/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/testing-my-controller-and-software/10/&amp;bm_description=Testing+my+stepper+motor+driver+and+software&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/testing-my-controller-and-software/10/&amp;title=Testing+my+stepper+motor+driver+and+software" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/testing-my-controller-and-software/10/&amp;title=Testing+my+stepper+motor+driver+and+software" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/testing-my-controller-and-software/10/&amp;title=Testing+my+stepper+motor+driver+and+software" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/testing-my-controller-and-software/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Testing+my+stepper+motor+driver+and+software+-+http://b2l.me/6ryq6&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/testing-my-controller-and-software/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seo tip of the day &#8211; using the free tools on the web</title>
		<link>http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/</link>
		<comments>http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 12:41:29 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[seo tips]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[google optimization]]></category>
		<category><![CDATA[google search]]></category>
		<category><![CDATA[google search engine]]></category>
		<category><![CDATA[important tool]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Corporation]]></category>
		<category><![CDATA[search optimization words]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=129</guid>
		<description><![CDATA[Hi, sorry for letting you wait so long for an other seo tip of the day, i was planning to write a tip every day but I have way to much actual work to do and can't find the time to write.
So the tip from today is about using some tools available on the web [...]


Related posts:<ol><li><a href='http://umkk.eu/seo-tip-of-the-day/04/' rel='bookmark' title='Permanent Link: Seo Tip of the day !'>Seo Tip of the day !</a></li>
<li><a href='http://umkk.eu/subdomains-in-seo/03/' rel='bookmark' title='Permanent Link: subdomains in SEO'>subdomains in SEO</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi, sorry for letting you wait so long for an other seo tip of the day, i was planning to write a tip every day but I have way to much actual work to do and can't find the time to write.</p>
<p>So the tip from today is about using some tools available on the web to find the right keywords in your optimization work, more specifically will tell you how you can find synonyms for your keywords.</p>
<p>The most important tool is google search itself, if you didn't know you can do a search for results that contains synonyms too, not just the keyword you can do that by adding the Tilda character in front of your search "~" so in stead of entering "cars" you should enter "~cars". You would say that this does not return the synonyms but searches for the synonyms, actually it does return the synonyms, they are the words in bold in your results. Those are very important in your search optimization words, because you can use synonyms when optimizing a page.</p>
<p>An other tool is google translate, for many words will return synonyms to.</p>
<p>And the last but not the less important is Microsoft Thesaurus which will return the actual synonyms for your word.</p>
<p>There are some other tools availeble on the internet, but thery are not so important as this one.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;title=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;title=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;title=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web&amp;desc=Hi%2C%20sorry%20for%20letting%20you%20wait%20so%20long%20for%20an%20other%20seo%20tip%20of%20the%20day%2C%20i%20was%20planning%20to%20write%20a%20tip%20every%20day%20but%20I%20have%20way%20to%20much%20actual%20work%20to%20do%20and%20can%27t%20find%20the%20time%20to%20write.%0D%0A%0D%0ASo%20the%20tip%20from%20today%20is%20about%20using%20some%20tools%20available%20on%20the%20web%20to%20find%20the%20right%20keywords%20in%20your%20optimi" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;t=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web&amp;body=Link: http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%2C%20sorry%20for%20letting%20you%20wait%20so%20long%20for%20an%20other%20seo%20tip%20of%20the%20day%2C%20i%20was%20planning%20to%20write%20a%20tip%20every%20day%20but%20I%20have%20way%20to%20much%20actual%20work%20to%20do%20and%20can%27t%20find%20the%20time%20to%20write.%0D%0A%0D%0ASo%20the%20tip%20from%20today%20is%20about%20using%20some%20tools%20available%20on%20the%20web%20to%20find%20the%20right%20keywords%20in%20your%20optimi" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;title=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;bm_description=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;title=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;title=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/&amp;title=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Seo+tip+of+the+day+-+using+the+free+tools+on+the+web+-+http://b2l.me/7ayj9&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/seo-tip-of-the-day/04/' rel='bookmark' title='Permanent Link: Seo Tip of the day !'>Seo Tip of the day !</a></li>
<li><a href='http://umkk.eu/subdomains-in-seo/03/' rel='bookmark' title='Permanent Link: subdomains in SEO'>subdomains in SEO</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Seo Tip of the day !</title>
		<link>http://umkk.eu/seo-tip-of-the-day/04/</link>
		<comments>http://umkk.eu/seo-tip-of-the-day/04/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 06:49:52 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[seo tips]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[google search engine]]></category>
		<category><![CDATA[internet users]]></category>
		<category><![CDATA[keywords]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[search engine optimization work]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[search engines optimization tips]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[SEO KEI]]></category>
		<category><![CDATA[SEO KOI]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=112</guid>
		<description><![CDATA[Hi, starting from today, i'll add an seo tip each day,  so in time i'll have lots of seo tips on this page for you to read.
I know that the internet is full with lots of seo tips or search engines optimization tips but the tips on this blog will help you much more to [...]


Related posts:<ol><li><a href='http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/' rel='bookmark' title='Permanent Link: Seo tip of the day &#8211; using the free tools on the web'>Seo tip of the day &#8211; using the free tools on the web</a></li>
<li><a href='http://umkk.eu/subdomains-in-seo/03/' rel='bookmark' title='Permanent Link: subdomains in SEO'>subdomains in SEO</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi, starting from today, i'll add an seo tip each day,  so in time i'll have lots of seo tips on this page for you to read.</p>
<p>I know that the internet is full with lots of seo tips or search engines optimization tips but the tips on this blog will help you much more to optimize your site and will help you rank high in the search engines. The tips here will be targeted more for the google search engine because it's the most used by the internet users.</p>
<p>So enough talking let's get straight to our seo tip of the day.</p>
<p>Seo tip number 1 :</p>
<p><em>when calculating the value of a keyword you can use both KEI (keyword effectiveness  index) and KOI (keyword opportunity index) to sort your keywords by relevance. Try to find the key words that have a good score for both of them, but usually KOI shows the difference better.</em></p>
<p><em>Here is how you can calculate KEY versus KOI for your keywords :</em></p>
<p><em>KEY = &lt;number of motley searches&gt;/&lt;number of competitors&gt;</em></p>
<p><em>KOI = &lt;number of motley searches&gt;*&lt;number of motley searches&gt;/&lt;number of competitors&gt;</em></p>
<p>I hope that this seo tip will be useful for you in your quest for the first position on google or any other search engine.</p>
<p>And remember, come back tomorrow for an other useful seo tip, because as i said above, we have lots of tips coming up each day.</p>
<p>You can also follow us on twitter to find more useful information about search engine optimization <a title="Follow us un twitter" href="http://twitter.com/rsergiu2003" target="_blank">http://twitter.com/rsergiu2003</a>.</p>
<p>The umkk SEO Team (me) !</p>
<p><strong>Also if you have any comments or questions please do not esitate to post a comment, i'll reply  as quiqk as i can !</strong></p>
<p>Because many people did not understood how the key efectivnes index and key opportunity index are calculated i'll post an example image bellow, ofcourse i covered the keywords. Any way, as those values are very important in your search engine optimization work, again if you have any questions please let me know.</p>
<div id="attachment_119" class="wp-caption aligncenter" style="width: 498px"><a href="http://umkk.eu/wp-content/uploads/2009/04/ex.png"><img class="size-full wp-image-119" title="ex" src="http://umkk.eu/wp-content/uploads/2009/04/ex.png" alt="keyword tables" width="488" height="85" /></a><p class="wp-caption-text">keyword tables</p></div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/seo-tip-of-the-day/04/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/seo-tip-of-the-day/04/&amp;title=Seo+Tip+of+the+day+%21" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/seo-tip-of-the-day/04/&amp;title=Seo+Tip+of+the+day+%21" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/seo-tip-of-the-day/04/&amp;title=Seo+Tip+of+the+day+%21&amp;desc=Hi%2C%20starting%20from%20today%2C%20i%27ll%20add%20an%20seo%20tip%20each%20day%2C%C2%A0%20so%20in%20time%20i%27ll%20have%20lots%20of%20seo%20tips%20on%20this%20page%20for%20you%20to%20read.%0D%0A%0D%0AI%20know%20that%20the%20internet%20is%20full%20with%20lots%20of%20seo%20tips%20or%20search%20engines%20optimization%20tips%20but%20the%20tips%20on%20this%20blog%20will%20help%20you%20much%20more%20to%20optimize%20your%20site%20and%20will%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/seo-tip-of-the-day/04/&amp;t=Seo+Tip+of+the+day+%21" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Seo+Tip+of+the+day+%21&amp;body=Link: http://umkk.eu/seo-tip-of-the-day/04/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%2C%20starting%20from%20today%2C%20i%27ll%20add%20an%20seo%20tip%20each%20day%2C%C2%A0%20so%20in%20time%20i%27ll%20have%20lots%20of%20seo%20tips%20on%20this%20page%20for%20you%20to%20read.%0D%0A%0D%0AI%20know%20that%20the%20internet%20is%20full%20with%20lots%20of%20seo%20tips%20or%20search%20engines%20optimization%20tips%20but%20the%20tips%20on%20this%20blog%20will%20help%20you%20much%20more%20to%20optimize%20your%20site%20and%20will%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/seo-tip-of-the-day/04/&amp;title=Seo+Tip+of+the+day+%21" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/seo-tip-of-the-day/04/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/seo-tip-of-the-day/04/&amp;bm_description=Seo+Tip+of+the+day+%21&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/seo-tip-of-the-day/04/&amp;title=Seo+Tip+of+the+day+%21" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/seo-tip-of-the-day/04/&amp;title=Seo+Tip+of+the+day+%21" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/seo-tip-of-the-day/04/&amp;title=Seo+Tip+of+the+day+%21" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/seo-tip-of-the-day/04/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Seo+Tip+of+the+day+%21+-+http://b2l.me/7ayka&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/' rel='bookmark' title='Permanent Link: Seo tip of the day &#8211; using the free tools on the web'>Seo tip of the day &#8211; using the free tools on the web</a></li>
<li><a href='http://umkk.eu/subdomains-in-seo/03/' rel='bookmark' title='Permanent Link: subdomains in SEO'>subdomains in SEO</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/seo-tip-of-the-day/04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>subdomains in SEO</title>
		<link>http://umkk.eu/subdomains-in-seo/03/</link>
		<comments>http://umkk.eu/subdomains-in-seo/03/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 18:49:31 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[google engineer]]></category>
		<category><![CDATA[google optimization]]></category>
		<category><![CDATA[Matt Cutts]]></category>
		<category><![CDATA[page rank]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[seo tips]]></category>
		<category><![CDATA[subdomains]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=104</guid>
		<description><![CDATA[This is a very interesting subject and a lot of people don't know if they should use sub domains when building a site, if this is good or this is bad.
There is no straight answer, because is not that easy, there are a lot of factors which you need to take in considerations when you [...]


Related posts:<ol><li><a href='http://umkk.eu/seo-tip-of-the-day/04/' rel='bookmark' title='Permanent Link: Seo Tip of the day !'>Seo Tip of the day !</a></li>
<li><a href='http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/' rel='bookmark' title='Permanent Link: Seo tip of the day &#8211; using the free tools on the web'>Seo tip of the day &#8211; using the free tools on the web</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is a very interesting subject and a lot of people don't know if they should use sub domains when building a site, if this is good or this is bad.</p>
<p>There is no straight answer, because is not that easy, there are a lot of factors which you need to take in considerations when you decide that sub domains are good for your SEO strategy and how search engines will see your site. I hope that the lines bellow will help you make a good decision and get the best results with your site.</p>
<p>The first thing which is long debated is if google treats sub domains as different sites, the answer to this is very simple : NO, google does not treat sub domains as different sites, and this comes from an google engineer (Matt Cutts).</p>
<p>An other thing is if using sub domains will help your site to be indexed better, this answer is also NO, using sub domains will not help you get indexed better.</p>
<p>Now, things that do changes when you use sub domains is page rank, the page rank of your main site will drop but the rank of the sub domains will be higher than without sub domains, so there will be more people going to the sub domains pages and less people going to the main page, than without using sub domains, the idea is that page rank will be shared between all the sub domains and the main domain.</p>
<p>As a conclusion I would say that you should use sub domains only if you know exactly why (for example have a better structure of the page) and if your target is not to get the users to a single page but to more pages inside your site. But if you don't know exactly what to do I suggest to use directories (www.yoursite/directory/page.html).</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/subdomains-in-seo/03/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/subdomains-in-seo/03/&amp;title=subdomains+in+SEO" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/subdomains-in-seo/03/&amp;title=subdomains+in+SEO" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/subdomains-in-seo/03/&amp;title=subdomains+in+SEO&amp;desc=This%20is%20a%20very%20interesting%20subject%20and%20a%20lot%20of%20people%20don%27t%20know%20if%20they%20should%20use%20sub%20domains%20when%20building%20a%20site%2C%20if%20this%20is%20good%20or%20this%20is%20bad.%0D%0A%0D%0AThere%20is%20no%20straight%20answer%2C%20because%20is%20not%20that%20easy%2C%20there%20are%20a%20lot%20of%20factors%20which%20you%20need%20to%20take%20in%20considerations%20when%20you%20decide%20that%20su" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/subdomains-in-seo/03/&amp;t=subdomains+in+SEO" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=subdomains+in+SEO&amp;body=Link: http://umkk.eu/subdomains-in-seo/03/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A This%20is%20a%20very%20interesting%20subject%20and%20a%20lot%20of%20people%20don%27t%20know%20if%20they%20should%20use%20sub%20domains%20when%20building%20a%20site%2C%20if%20this%20is%20good%20or%20this%20is%20bad.%0D%0A%0D%0AThere%20is%20no%20straight%20answer%2C%20because%20is%20not%20that%20easy%2C%20there%20are%20a%20lot%20of%20factors%20which%20you%20need%20to%20take%20in%20considerations%20when%20you%20decide%20that%20su" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/subdomains-in-seo/03/&amp;title=subdomains+in+SEO" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/subdomains-in-seo/03/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/subdomains-in-seo/03/&amp;bm_description=subdomains+in+SEO&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/subdomains-in-seo/03/&amp;title=subdomains+in+SEO" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/subdomains-in-seo/03/&amp;title=subdomains+in+SEO" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/subdomains-in-seo/03/&amp;title=subdomains+in+SEO" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/subdomains-in-seo/03/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=subdomains+in+SEO+-+http://b2l.me/6s2qp&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/seo-tip-of-the-day/04/' rel='bookmark' title='Permanent Link: Seo Tip of the day !'>Seo Tip of the day !</a></li>
<li><a href='http://umkk.eu/seo-tip-of-the-day-using-the-free-tools-on-the-web/04/' rel='bookmark' title='Permanent Link: Seo tip of the day &#8211; using the free tools on the web'>Seo tip of the day &#8211; using the free tools on the web</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/subdomains-in-seo/03/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
