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

....Share and Enjoy
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • DotNetKicks
  • Technorati
  • blogmarks
  • Live
  • Reddit
  • RSS
  • StumbleUpon
  • Twitter

Comments (5)

Hello! Please e-mail me your contacts. I have a question webmaster@complective.ru” rel=”nofollow”>……

Thank you!!!…

Medicamentspot.com International Legal RX Medications. Special Internet Prices (up to 40% off average US price). NO PRIOR PRESCRIPTION REQUIRED!…

Combivir@buy.online” rel=”nofollow”>.…


PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Online Pharmacy. Order drugs online

Buy:Lumigan.Accutane.Human Growth Hormone.Zovirax.Petcam (Metacam) Oral Suspension.Prevacid.Zyban.Nexium.Arimidex.Mega Hoodia.Retin-A.Synthroid.Prednisolone.100% Pure Okinawan Coral Calcium.Valtrex.Actos….


Medicamentspot.com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription drugs. Order pills online

Buy:Viagra Super Active+.Cialis Super Active+.Viagra Professional.Viagra Super Force.Levitra.Super Active ED Pack.Maxaman.VPXL.Viagra Soft Tabs.Cialis Professional.Propecia.Viagra.Cialis.Cialis Soft Tabs.Soma.Tramadol.Zithromax….

Write a comment