<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6430872089671989993</id><updated>2011-07-08T03:40:17.251-07:00</updated><title type='text'>tolleycoder.com's blog</title><subtitle type='html'>This is the blog for tolleycoder.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-3899333032650620659</id><published>2010-07-25T09:09:00.000-07:00</published><updated>2010-07-25T09:10:47.858-07:00</updated><title type='text'>Moving</title><content type='html'>This blog has been moved to &lt;a href="http://tolleycoder.com"&gt;tolleycoder.com&lt;/a&gt;  Please update your bookmarks and such accordingly.  There will be no more content added to this blog.&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class=" on down" style="display: block;" id="formatbar_ForeColor" title="Text Color" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);SelectColor(this,'ForeColor');ButtonMouseDown(this);"&gt;&lt;img src="img/blank.gif" alt="Text Color" class="gl_color_fg" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-3899333032650620659?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/3899333032650620659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=3899333032650620659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/3899333032650620659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/3899333032650620659'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2010/07/moving.html' title='Moving'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-3712233763815223289</id><published>2010-05-29T12:45:00.000-07:00</published><updated>2010-06-02T19:40:53.998-07:00</updated><title type='text'>Lucid Lynx</title><content type='html'>I installed xubuntu 10.04 onto my netbook.  It's noticeable faster than the previous version of xubuntu that I had installed.  It actually makes my netbook easy to use.&lt;br /&gt;&lt;br /&gt;I've been really busy lately.  I guess it's time to pay back the previous seven months :)  I've been learning Drupal too.  If you want to write a website without actually writing a website, Drupal is the answer.  It's ashame that it's not object oriented, but I guess you can't have everything.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-3712233763815223289?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/3712233763815223289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=3712233763815223289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/3712233763815223289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/3712233763815223289'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2010/05/lucid-lynx.html' title='Lucid Lynx'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-6396501676757757478</id><published>2009-08-19T13:41:00.000-07:00</published><updated>2009-09-24T12:38:39.650-07:00</updated><title type='text'>Tolley no Go</title><content type='html'>New pics are up in the pictures section.  I took all of them at the 25th US Go Congress.  It was my first time at the Go Congress so it was very exciting.  I learned a lot, and my AGA rank went up 5 points after the results where reported (I'm now 23 kyu, up five ranks from 28 kyu).&lt;br /&gt;&lt;br /&gt;I played in the US Open Go tournament.  It consisted of six rounds, one round a day for 6 days.  In the end my final record was three wins, three loses.  I feel pretty good about my performance considering it was my second Go tournament, and definitely the biggest Go event I've ever been in.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-6396501676757757478?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/6396501676757757478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=6396501676757757478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/6396501676757757478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/6396501676757757478'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2009/08/tolley-on-go.html' title='Tolley no Go'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-2855315141055894506</id><published>2008-04-22T17:58:00.001-07:00</published><updated>2008-04-22T18:16:02.483-07:00</updated><title type='text'>Always learning</title><content type='html'>Long time no post. First of all, I just put up a new &lt;a href="http://tolleycoder.com/projects?name=pysudoku"&gt;project&lt;/a&gt;.  Its a Sudoku game written in Python using wxPython for the GUI.  I have to admit that I really like Python.  It's so lean and clean.  It removes all the syntax markers that you thought where necessary like end of line characters and it forces you to properly format your code.  Also, I've never worked with an implicitly typed language but now that I'm used to it, I love it.  No longer do I have flip through reference books and search google to make sure I'm declaring my datatypes correctly.&lt;br /&gt;&lt;br /&gt;I've spent the last few months learning.  I've become familiar with UML and the Unified Process and I'm itching to put it to use.  I've always had a more spontaneous approach to my side projects.  Because of that I tend to loose focus and my projects would get eaten alive by the Creepy Feature Creature.  Diagramming everything out has made large projects seem very small and manageable.  Its really good to have that kind of focus and I think that my next attempt at building my own commercial site will be a successful one.&lt;br /&gt;&lt;br /&gt;I've also discovered &lt;a href="http://www.inkscape.org/"&gt;Inkscape&lt;/a&gt;.  Its a vector graphics editing program that a few of the UI guys at work recommended to mock up pages.  I spent a few nights reading and working through tutorials.  Its actually a lot easier to use than The GIMP as it lets you manipulate elements of an image as individual objects.  This makes it a lot easier for me to go back and change things and generally play around with the layout and color scheme of a given page.&lt;br /&gt;&lt;br /&gt;Anyone who hasn't already should go check out my &lt;a href="http://youtube.com/tolleycoder"&gt;youtube debut&lt;/a&gt;.  Thats me on a homemade rola bola juggling.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-2855315141055894506?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/2855315141055894506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=2855315141055894506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/2855315141055894506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/2855315141055894506'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2008/04/always-learning.html' title='Always learning'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-8805444598114096309</id><published>2008-01-23T16:56:00.000-08:00</published><updated>2008-01-23T17:19:21.328-08:00</updated><title type='text'>Web 2.woes</title><content type='html'>I've recently begun working on a suite of web services for social sites (MySpace, Facebook, Orkut).  You can check out my progress at &lt;a href="http://services.tolleycoder.com/"&gt;services.tolleycoder.com&lt;/a&gt;.  I'll probably change the name and move it to its own domain when its ready for prime time, but its good where it's at for the time being.&lt;br /&gt;&lt;br /&gt;So, my idea for this is to take advantage of all the skills I've been teaching myself recently and come up with something really snazzy.  Last night I was on gmail and I noticed that it was using the location.hash property as I navigated around.  Not only that, but the back and forward button worked as well.  This got me thinking.  If I implemented a similar solution, I could have the browser keep track of its own history, just like it normally does, while still using AJAX to make every request.&lt;br /&gt;&lt;br /&gt;I had been using a hidden iframe who's document had an onload event which loaded a second page, who's onload event told the parent window to fire off an 'onBackButton' event (using &lt;a href="http://mootools.net/"&gt;mootools&lt;/a&gt; events.)  This allowed my application code to hook into back button events and I was able to simulate the back button, but the forward button, that was a different story.  This also meant that I had to keep track of the history of the application either in javascript on the client, or on the server in the session.  Keeping track of the history yourself is a pain.&lt;br /&gt;&lt;br /&gt;I spent some time today googling around and I found out about a method that uses location.hash and a polling system to keep track of where the page is.  All you have to do is change location.hash to reflect your current page.  So far so good, but the problem comes when you try to throw IE into the mix.  Turns out that IE doesn't add a layer to the history stack when you change a fragment of the URL.  You can however put a hidden iframe in the document and use it's source property like the location.hash.&lt;br /&gt;&lt;br /&gt;So, I'll be spending most of my night tonight implementing a system that works in both IE and standards compliant browsers.  Its a pain, but I'll be thrilled when its finally complete.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-8805444598114096309?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/8805444598114096309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=8805444598114096309' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/8805444598114096309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/8805444598114096309'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2008/01/web-2woes.html' title='Web 2.woes'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-1083100124316798928</id><published>2007-11-13T22:04:00.000-08:00</published><updated>2007-11-19T20:44:28.601-08:00</updated><title type='text'>I made bread</title><content type='html'>Yes, I actually made bread.  I like to cook.  I don't do it a lot cause ultimately I'm lazy, but I like to try news things every so often.  I found a bread recipe online and it looked easy so I tried it out.  &lt;a href="http://images.tolleycoder.com/bread.JPG"&gt;Click to see the resulting loaf&lt;/a&gt;.  It doesn't look like much cause the bread pan I got wasn't big enough to give it the classic loaf shape.  Next time I'll make more dough and let it raise longer.&lt;br /&gt;&lt;br /&gt;Cirque Du Soleil was awesome.  I was amazed by what they where able to do with such a small amount of space.  My favorite act was the &lt;a href="http://youtube.com/watch?v=3LUtxzQLzcc"&gt;boleadoras&lt;/a&gt; cause I have a thing for percussion acts.  I also beat Zelda Phantom Hourglass.  It took me a while to get used to using the stylus for almost everything but once I did, it was hard to pick up a controller again.&lt;br /&gt;&lt;br /&gt;I'd love to be able to take Dec off and work on my personal projects.  Theres so much I want to do, so many things I want to write but I just don't have time to fit it all in.  I remember back to after I graduated college and I was having trouble finding a job.  I would sit around my dad's house day after day and work on my game.  It got really depressing and I remember how I couldn't wait to find a job.   Now, about 3 years later, I'd love to have nothing to do all day.   Have the entire day free to focus on the things I want to do.   Oh well, such is life.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-1083100124316798928?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/1083100124316798928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=1083100124316798928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/1083100124316798928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/1083100124316798928'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2007/11/i-made-bread.html' title='I made bread'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-8506344739835303746</id><published>2007-10-04T17:11:00.000-07:00</published><updated>2007-10-04T17:34:51.924-07:00</updated><title type='text'>Zelda and traveling</title><content type='html'>Spent last weekend in beautiful Ann Arbor, Michigan with Adrienne.  It was a lot of fun and we saw some cool places.  The University is really nice.  I put some pictures up in my &lt;a href="http://tolleycoder.com/photos"&gt;picture section&lt;/a&gt; so everybody could see.&lt;br /&gt;&lt;br /&gt;Zelda Phantom Hourglass is finally out for the DS.  I've been looking forward to this game for quite a while now.  Since this is the sequel to Wind Waker, I've decided to play through Wind Waker before I get to Hourglass. &lt;br /&gt;&lt;br /&gt;That doesn't mean I haven't tried it out however.  I played through the first five minutes or so and its really cool.  So far, I've been able to do everything with one hand using my stylus.  You can tap enemies and Link will attack them.  You can draw a slash on the screen and your sword swings.  Best of all, you can run.  Its so nice being able to run in a Zelda game.  Usually, you have to roll to move faster so the entire time you're playing you get to hear "hup hup" and an occasional, frustrating, "thud" when you smash Link's head into some stairs.&lt;br /&gt;&lt;br /&gt;For those of you out there that have purchased your own copy of Hourglass, Nintendo is giving away a free &lt;a href="http://www.nintendo.com/hourglass/"&gt;quill shaped stylus&lt;/a&gt; to anyone that registers their copy on the site.  Mine should be on the way soon.&lt;br /&gt;&lt;br /&gt;One last piece of news, this weekend I'm going to see Cirque Du Soleil right here in Norfolk.  I'm really looking forward to that.  It should be a good show.  My only regret is that I waited to long to get tickets,  so my seat isn't that great, but I'm still excited about this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-8506344739835303746?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/8506344739835303746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=8506344739835303746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/8506344739835303746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/8506344739835303746'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2007/10/zelda-and-traveling.html' title='Zelda and traveling'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-3162936261064046</id><published>2007-09-19T21:37:00.000-07:00</published><updated>2007-09-19T22:26:31.800-07:00</updated><title type='text'>Many Months</title><content type='html'>I've been kinda busy lately.  Work is crazy, but its ok cause we are about to launch a new version of one of our sites.  It'll be nice to see all our hard work pay off at last.  After that, its off to rewrite the next site.&lt;br /&gt;&lt;br /&gt;I managed to update a few things on my site.  First I put a link to my blog on my homepage.  If you are reading this on my site then you should see the link below.  If you are reading this from Blogger.com then just ignore this.  The second update was for the photos section.  Now, if you click on a photo, it now opens in Picasa's slide show.  I just found out about the slide show the other day and I thought it would be cool use.&lt;br /&gt;&lt;br /&gt;The final thing I recently did was that I put up a section for some of my &lt;a href="http://tolleycoder.com/projects"&gt;projects&lt;/a&gt;.  Go check out my handy work.&lt;br /&gt;&lt;br /&gt;I've decided to start getting into digital video editing.  Its obviously gonna continue to get bigger and bigger as sites like YouTube gain in popularity.  I get the feeling that one day web site developers will be required to know some basic video editing software.  Also, it seems like a lot of fun.   Some of the stuff that I've seen is amazing and way more entertaining than most of the stuff on tv today.&lt;br /&gt;&lt;br /&gt;I really want to try to take advantage of YouTube while I can.  I could see a time coming when sites like YouTube become as organized and controlled as television.  A time when you can't just throw a video of yourself onto the most popular sites.  You'd have to get your video approved by some panel of judges or pay someone for space or bandwidth.  I think it may be a ways off, but I could see that happening sooner or later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-3162936261064046?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/3162936261064046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=3162936261064046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/3162936261064046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/3162936261064046'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2007/09/many-months.html' title='Many Months'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-1694121896938468183</id><published>2007-07-01T20:36:00.000-07:00</published><updated>2007-07-02T15:33:25.389-07:00</updated><title type='text'>Text box magic script</title><content type='html'>Demo this script &lt;a href="http://tolleycoder.com/textbox"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I'm seeing more and more sites using a simple little text box effect.  The text box in a form is loaded with some descriptive text in it like "Name"  and when the user clicks on it, the box empties itself in readiness for input.  It's a nice little effect that makes forms look cleaner so I thought I'd put up a code snippet here that does it for you.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;function textboxFocus( txtBox )&lt;br /&gt;{&lt;br /&gt;var tempVal = txtBox.value;&lt;br /&gt;txtBox.value = '';&lt;br /&gt;txtBox.onfocus = null;&lt;br /&gt;txtBox.onblur = function() { textboxBlur( txtBox, tempVal ); };&lt;br /&gt;}// End function textboxFocus&lt;br /&gt;&lt;br /&gt;function textboxBlur( txtBox, msg )&lt;br /&gt;{&lt;br /&gt;if( txtBox.value.length == 0 )&lt;br /&gt;{&lt;br /&gt;txtBox.value = msg;&lt;br /&gt;txtBox.onfocus = function() { textboxFocus( txtBox ); };&lt;br /&gt;txtBox.onblur = null;&lt;br /&gt;}// End if&lt;br /&gt;}// End function textboxBlur&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;Now, here's how to use that code:&lt;br /&gt;Obviously, the first thing you need to do is to copy the above code into your document.  Next, you'll need a textbox with an onFocus event set up to call textBoxFocus:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);font-size:85%;" &gt;&amp;amp;lt;input type="text" name="myText" value="Name" onFocus="textboxFocus( this );" / &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(102, 102, 102);font-size:85%;" &gt;&amp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(102, 102, 102);font-size:85%;" &gt;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, when the page loads, the textbox will have whatever text you put into the value attribute (in this case 'Name'.)  When the user's cursor enters the textbox, the onFocus event fires off and textboxFocus is called.&lt;br /&gt;&lt;br /&gt;The textboxFocus function removes the default text, removes the onFocus event handler (so the user's text won't be blanked out), and sets up an event to fire onBlur to call textboxBlur with the original text as an argument.&lt;br /&gt;&lt;br /&gt;When textboxBlur is called it checks to see if the user entered anything.  If not, it puts the default text back in and sets up the original event handler to fire onFocus to call textboxFocus.&lt;br /&gt;&lt;br /&gt;I think this is a nice script cause its small (only 17 lines), simple (only 2 functions), it works on textarea elements too, and it puts the original text back into the box if the user doesn't enter anything.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-1694121896938468183?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/1694121896938468183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=1694121896938468183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/1694121896938468183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/1694121896938468183'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2007/07/text-box-magic-script.html' title='Text box magic script'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6430872089671989993.post-7747134161710182691</id><published>2007-06-07T20:55:00.000-07:00</published><updated>2007-09-19T20:53:22.893-07:00</updated><title type='text'>Arrow Problems</title><content type='html'>I saw an article not too long ago describing ten different apps that you should use if you are running Ubuntu.  One of the ones on the list was Katapult, the application launcher.  I installed it (easy) but when I tried to use it, by pressing alt+space, all I got was the context menu.  I did some googling and figured out how to disable that keybinding and got Katapult working fine.   The next day when I tried to do some coding I found that the down arrow wasn't working.   Somewhere along the line I've screwed up the key binding (I think.)&lt;br /&gt;&lt;br /&gt;I've been googling around, asking friends, trying different things but I can't figure it out.  Its really annoying when I try to code and hit the down arrow and nothing happens.  It completely derails my train of thought.  I'm gonna have to figure this out soon.&lt;br /&gt;&lt;br /&gt;In other news; I got the Opera browser for my DS.  Its pretty cool actually.  I just wish that there where more WiFi hotspots around that I could connect too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6430872089671989993-7747134161710182691?l=christolley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://christolley.blogspot.com/feeds/7747134161710182691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6430872089671989993&amp;postID=7747134161710182691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/7747134161710182691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6430872089671989993/posts/default/7747134161710182691'/><link rel='alternate' type='text/html' href='http://christolley.blogspot.com/2007/06/arrow-problems.html' title='Arrow Problems'/><author><name>Chris Tolley</name><uri>http://www.blogger.com/profile/14911191951053747028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
