posted on Thursday, September 20, 2007 11:09 AM |

Girls are far smarter than me.  So I've been spending time on my Ajax presentation and to fit code on a slide, I had alter it and slim it down to reduce white space.  It makes it a less readable but I'm able to fit everything at a decent font size on the screen.

Me, being the wonderfully developer I am, just altered and moved on.  I actually committed two bad acts of development.  Code late at night while being tired, and not testing.

This is what I had.

<snip>

if( xmlRequest == null )
   alert( "could not create request" ); return;

</snip>

Can anyone spot the problem?  I couldn't either for a solid 5 minutes since I knew this code worked yesterday afternoon.  I clicked the link, and nothing happened.  "Hulk Angry Powers" started to activate.

Due to indenting, this is how the actually ran

<snip>

if( xmlRequest == null )
   alert( "could not create request" );

return;

</snip>

The code should have read

<snip>

if( xmlRequest == null )
{ alert( "could not create request" ); return; }

</snip>

Tags [ General ]

Your Comments.

  • # 

    The new apartment looks dope. You've gotta get better pictures and let me know what it costs. And get more toys. I'm selling my ultra-rare HazMaPos on eBay if you want to start off right ;)

    Left by Ian at 8/12/2007 10:08 AM
Post Comment
Title *
Name *
Email
Url
Comment *  
Please add 6 and 7 and type the answer here: