Kevin Castle

Viewing Generated Source in IE7

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

Comments

Sasha said:

That's pretty cool, but will it work with J#? And how well does it scale?

# January 30, 2009 6:29 PM

kevincastle said:

Amazingly enough this feature was already built into J#....and since J# scales no matter what type of code you write there is nothing to worry about. Its Teh Awesome.

No but all joking aside this little script just saved my life last week.

# January 31, 2009 10:57 AM

how to squat properly said:

I am so grateful for your blog article.Thanks Again. Want more.

# March 18, 2013 11:33 AM

como sacar dinero por internet said:

Thanks for the post.Thanks Again. Awesome.

# March 18, 2013 12:30 PM

buy twitter followers no password said:

I really enjoy the article.Thanks Again. Keep writing.

# March 18, 2013 3:01 PM

Kollagen Intensiv review said:

Thanks-a-mundo for the blog.Much thanks again. Awesome.

# March 18, 2013 4:16 PM

womens winter coats said:

Enjoyed every bit of your blog article.Much thanks again. Want more.

# March 18, 2013 5:01 PM

Home based business- Your essential components to work from home. said:

Very good article post. Really Cool.

# March 18, 2013 5:32 PM

bodybuilding tips said:

Thanks for sharing, this is a fantastic blog article.Thanks Again. Want more.

# March 18, 2013 6:49 PM

Wrinkle Cream said:

Very good post.Really looking forward to read more. Much obliged.

# March 18, 2013 6:50 PM

Remove Watermark said:

I truly appreciate this article.Really looking forward to read more. Want more.

# March 18, 2013 8:05 PM

karate for kids said:

Thanks again for the post.Thanks Again. Fantastic.

# March 18, 2013 8:40 PM

Calgary Dentists Online Reputation Management said:

Thanks again for the post.Thanks Again. Really Great.

# March 18, 2013 9:20 PM

dodaf training said:

Thanks so much for the article post. Cool.

# March 18, 2013 10:31 PM

adsense said:

I appreciate you sharing this article. Really Great.

# March 19, 2013 12:23 AM

safe tanning said:

Thanks again for the blog post.Much thanks again. Fantastic.

# March 19, 2013 9:12 AM

Justin Bieber official web site said:

Very neat blog post. Great.

# March 19, 2013 10:31 AM

evasi0n 1.5.1 said:

Say, you got a nice blog post.Thanks Again. Great.

# March 19, 2013 1:23 PM

travel said:

Enjoyed every bit of your article post. Awesome.

# March 19, 2013 5:02 PM

kimberly bowles said:

Thanks for the article post.Thanks Again. Keep writing.

# March 19, 2013 5:09 PM

Scared of Public Speaking said:

I am so grateful for your article.Really looking forward to read more. Fantastic.

# March 19, 2013 6:22 PM

boot camp in chino said:

A round of applause for your post.Much thanks again. Much obliged.

# March 19, 2013 7:00 PM

Beach Homes For Sale In Florida said:

Really appreciate you sharing this blog post.Thanks Again. Keep writing.

# March 19, 2013 10:32 PM

acompanhantes sp said:

I think this is a real great blog article.Much thanks again. Great.

# March 19, 2013 10:43 PM

humane said:

Really informative article post.Much thanks again. Really Cool.

# March 20, 2013 2:28 AM

Remove Watermark said:

Im obliged for the article.Really looking forward to read more. Really Great.

# March 20, 2013 5:57 AM

morgan said:

Very informative blog article. Awesome.

# March 20, 2013 8:08 AM

glass dildos said:

Major thankies for the article.Thanks Again. Will read on...

# March 20, 2013 3:08 PM

artists similar to dr dre said:

Wow, great blog article.

# March 20, 2013 4:36 PM

Pedicure said:

We offer professional help with any DWI offense in Houston

# March 20, 2013 5:54 PM

paying for instagram followers said:

Say, you got a nice blog post.Much thanks again. Really Great.

# March 20, 2013 8:57 PM

Scammer said:

wow, awesome article post.Really looking forward to read more. Much obliged.

# March 20, 2013 9:23 PM

maldives resorts said:

I appreciate you sharing this blog article.Thanks Again. Really Great.

# March 20, 2013 9:39 PM

Parabéns Professor Adail the excellent work said:

I appreciate you sharing this post.Thanks Again. Much obliged.

# March 20, 2013 10:24 PM

pay for instagram followers said:

I truly appreciate this article.Really looking forward to read more. Fantastic.

# March 20, 2013 11:32 PM

clsificados en popayan said:

Thanks for the blog article. Awesome.

# March 20, 2013 11:52 PM

articles about the abstract said:

Looking forward to reading more. Great article post.Thanks Again. Keep writing.

# March 21, 2013 1:21 AM

Invermere foreclosure said:

Great, thanks for sharing this blog.Thanks Again. Fantastic.

# March 21, 2013 2:50 AM

skype acount hacks said:

A round of applause for your post.Much thanks again. Will read on...

# March 21, 2013 3:19 AM

hack a skype account said:

Major thanks for the blog article.Thanks Again. Awesome.

# March 21, 2013 5:13 AM

Toronto wedding photography said:

This is one awesome article post.Thanks Again. Fantastic.

# March 21, 2013 7:01 AM

Swing Trade Strategies said:

Very informative article.Really looking forward to read more. Will read on...

# March 21, 2013 7:06 AM

cosmetic store said:

Thanks a lot for the article post.Thanks Again. Keep writing.

# March 21, 2013 10:02 AM

follower wonk said:

I think this is a real great post.Thanks Again.

# March 21, 2013 10:59 AM

Which Washer to purchase said:

Very neat post.Thanks Again. Really Great.

# March 21, 2013 11:32 AM

chockana supply said:

Very good blog.Thanks Again. Cool.

# March 21, 2013 12:43 PM

Printpagesonline said:

I am so grateful for your blog.Really looking forward to read more. Will read on...

# March 21, 2013 1:03 PM

Private Krankenversicherung Vergleich said:

Major thankies for the blog post.Thanks Again. Awesome.

# March 21, 2013 4:19 PM

press release said:

Thanks so much for the article.Much thanks again. Want more.

# March 21, 2013 4:36 PM

gold IRA reviews said:

Major thankies for the blog post.Really looking forward to read more. Great.

# March 21, 2013 5:35 PM

depilacion laser valladolid said:

Looking forward to reading more. Great blog article.Thanks Again. Much obliged.

# March 21, 2013 6:09 PM

potenspiller said:

I appreciate you sharing this blog.Thanks Again. Fantastic.

# March 21, 2013 6:30 PM

Special Effects Image said:

I value the blog.Really looking forward to read more. Much obliged.

# March 21, 2013 7:56 PM

li-da said:

Awesome post.Thanks Again. Great.

# March 21, 2013 8:07 PM

what does silver lining mean said:

Very neat article.Thanks Again. Much obliged.

# March 21, 2013 10:01 PM

top tumblr blogs said:

I think this is a real great article. Keep writing.

# March 21, 2013 11:40 PM

garcinia cambogia said:

I value the blog. Want more.

# March 21, 2013 11:56 PM

SEO Services Fr�m Experts said:

I really like and appreciate your article post.Really looking forward to read more. Great.

# March 22, 2013 6:44 AM

buy hardware online said:

Muchos Gracias for your blog article.Much thanks again. Awesome.

# March 22, 2013 7:58 AM

pickyourclothings.com said:

I think this is a real great blog article.Really looking forward to read more. Awesome.

# March 22, 2013 10:46 AM

Cody Bennett from Bakersfield said:

This is one awesome blog article.Really looking forward to read more. Much obliged.

# March 22, 2013 12:21 PM

how the choose and find the best accessories for Nexus 7 said:

Major thanks for the blog.Thanks Again.

# March 22, 2013 1:54 PM

smokers stink said:

I think this is a real great blog article.Much thanks again. Great.

# March 22, 2013 5:06 PM

hand painted decorative tiles said:

I loved your article.Much thanks again. Will read on...

# March 22, 2013 8:57 PM

What is the best Washer said:

I think this is a real great post.Thanks Again. Cool.

# March 24, 2013 7:28 AM

anniversary gifts said:

Im thankful for the blog article.Thanks Again. Much obliged.

# March 24, 2013 10:55 AM

gift ideas said:

I think this is a real great blog article. Keep writing.

# March 24, 2013 12:48 PM

personalised presents said:

This is one awesome article post.Really looking forward to read more. Will read on...

# March 24, 2013 2:40 PM

AIR BRUSHING COURSE said:

Fantastic blog.Thanks Again. Fantastic.

# March 25, 2013 2:43 AM

it repair carlsbad said:

Fantastic blog.Really looking forward to read more.

# March 25, 2013 5:31 AM

addiction said:

Very good blog.Really looking forward to read more. Much obliged.

# March 25, 2013 10:09 AM

Assets Casting Agency said:

Really informative blog article.Really looking forward to read more. Want more.

# March 25, 2013 10:13 AM

web site traffic said:

Very neat article post.Really looking forward to read more. Great.

# March 25, 2013 10:37 AM

corporate catering said:

This is one awesome blog post. Awesome.

# March 25, 2013 11:48 AM

sell gold said:

Great, thanks for sharing this article post.Really looking forward to read more.

# March 25, 2013 12:18 PM

quejas said:

I think this is a real great article post.Much thanks again. Great.

# March 25, 2013 2:20 PM

valley of the O�Moores said:

Enjoyed every bit of your blog.Really looking forward to read more. Much obliged.

# March 25, 2013 4:11 PM

slipcovers for couches said:

Really enjoyed this blog article.Much thanks again. Really Great.

# March 25, 2013 6:02 PM

about motor club of america said:

wow, awesome blog.Much thanks again. Will read on...

# March 25, 2013 6:55 PM

IT Support London said:

Im grateful for the blog article.Thanks Again. Really Cool.

# March 25, 2013 8:16 PM

need more followers said:

Looking forward to reading more. Great blog article.Much thanks again. Really Great.

# March 25, 2013 9:10 PM

cheap reliable web hosting said:

Very neat article post.Much thanks again. Want more.

# March 26, 2013 1:34 AM

how to reduce thigh fat in a week said:

Awesome blog.Much thanks again. Will read on...

# March 26, 2013 1:49 AM

graduacion df said:

Appreciate you sharing, great blog article.Thanks Again.

# March 26, 2013 4:07 AM

Training said:

Major thankies for the blog post.Really looking forward to read more. Want more.

# March 26, 2013 8:47 AM

yiddishe mama said:

Major thanks for the post.Thanks Again. Really Great.

# March 26, 2013 12:15 PM

oferte spania said:

Thanks so much for the post. Want more.

# March 26, 2013 6:13 PM

night dresses said:

Major thanks for the article.Much thanks again. Will read on...

# March 26, 2013 7:46 PM

oferte grecia said:

Great blog post.Thanks Again. Really Cool.

# March 26, 2013 9:19 PM

tinnitus miracle review said:

Very neat blog.Thanks Again. Much obliged.

# March 27, 2013 10:42 AM

coffee canada blog said:

I value the blog post. Awesome.

# March 27, 2013 3:28 PM

best email marketing software said:

Great, thanks for sharing this blog.Much thanks again. Great.

# March 27, 2013 6:38 PM

investment programs said:

Muchos Gracias for your blog.

# March 28, 2013 9:15 AM

Buy Instagram Followers Likes Comment said:

Im obliged for the blog.Thanks Again. Awesome.

# March 28, 2013 3:49 PM

lastbilnettet said:

Thanks for the post.Thanks Again. Great.

# March 28, 2013 6:59 PM

Discount card program for school fundraisers said:

Thanks so much for the blog post.Much thanks again.

# March 28, 2013 10:06 PM

buy facebook likes said:

Enjoyed every bit of your blog.Much thanks again. Really Great.

# March 29, 2013 9:54 AM

lose weight said:

Looking forward to reading more. Great blog.Really looking forward to read more. Really Great.

# March 29, 2013 11:28 AM

paginas para descargar musica said:

Very good blog article. Great.

# March 29, 2013 1:03 PM

valet nj said:

Major thankies for the blog post.Really looking forward to read more. Cool.

# March 29, 2013 7:37 PM

once fired 308 brass said:

Say, you got a nice blog post.Really looking forward to read more. Much obliged.

# March 29, 2013 9:10 PM

Narcotics Anonymous Chat said:

Fantastic post. Great.

# March 29, 2013 10:43 PM

chakra symbols said:

Looking forward to reading more. Great blog post. Keep writing.

# March 30, 2013 12:16 AM

reseller hosting said:

Really appreciate you sharing this blog article. Really Cool.

# March 30, 2013 1:50 AM

www.scissors-supplier.com said:

I truly appreciate this blog.

# April 1, 2013 12:45 PM

hotels said:

Looking forward to reading more. Great blog. Keep writing.

# April 5, 2013 10:22 AM

Gmail inicio said:

A round of applause for your article.Much thanks again. Will read on...

# April 5, 2013 2:10 PM

criminal lawyer Sydney said:

Thanks for the blog post.

# April 5, 2013 7:52 PM

Mortensen said:

Heya i'm for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I am hoping to give one thing back and aid others such as you aided me.

# April 14, 2013 1:23 AM