Viewing Generated Source in IE7

Posted by Kevin Castle | Posted in Development | Posted on 01-03-2010

5

One of the most frustrating things that I’ve found in developing/debugging in IE is that you can only view the page source which was initially rendered with the first page load. This was acceptable a couple of years ago, but is really a huge limitation utilizing AJAX (and I’m not just referring to UpdatePanel’s).

Of course you can view generated source with Firefox but what are you supposed to do when debugging any newly inserted client side script and/or viewing dynamically added markup? After searching around I found that you can simply copy and past the following script into the browsers address bar and it will open a new window with the pages currently generated source.

javascript:void(window.open(“javascript:document.open(\”text/plain\”);document.write(opener.document.body.parentNode.outerHTML)”))

image

You can also add this to your IE favorites or add it to your Links toolbar so that its always one click away.

image

I cannot tell you how much this saved me this last week when I was using eval() to dynamically add script elements to the page’s header.

image

Moved from dasBlog to BlogEngine.Net and now to WordPress

Posted by Kevin Castle | Posted in Development | Posted on 01-03-2010

5

Finally moved to WordPress. I always wanted to stay on the .Net platform for my blog but figured that it would be much easier and nicer to focus on producing content (which would be a challenge in-itself) rather than trying to tinker around and get one of the .Net blog engines to have all the cool bells and whistles that WordPress has.