Developer’s Diaries – It’s (not) good to refresh
A developer has his days where he sets tough targets and miletones to deliver. Tonight was such a night for me. I had windows open all over, working on multiple things simultaneously. I did a small update to one of my sites in the header, tested fine, upload to production. Only to find out all of a sudden, the page magically refreshes everytime I click on the search textbox field!
I know what you’re thinking. OnClick events. I tried to check them all, even though I did not made any modifications there. There was absolutely nothing wrong with them. I revised all the header parameters. No refresh or anything as that. Is my site hacked or something? No. Problem replicated in development local machine. I have a load of javascript files for jQuery and autocompletion, so I thought to my self, maybe a new version of Firefox & Chrome is creating this sort of problems with an old jQuery library, as IE this time was on the safe side!. Googling for similar instances, no results!
I placed another test textbox, it absorbs the same behavior. Any other page on the site does not have this problem but the main page. Something must be wrong. I had to make the bad move. I started trimming the code to pieces. First, remove all HEAD section. Problem remains. Remove footer, all javascript code, remove the whole body. Problem only went when I replaced the whole page with single input box inside BODY tag. Now, start revirsing and building up the site. Once I added the header section, problem comes again! I only replaced the image for God’s sake!
<span><a href=”index.php” ><img src=”logo.gif”/></a></span>
Darn it! I only forgot to close the <a> tag, and the text boxes turned into monster linking creatures! Wonder why only the textboxes absorbed the links though. Hahh… night wasted, but at least I will sleep with peace of mind.
Popularity: 7% [?]
Related Posts:
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.


happens all the time!! you’re not alone