Debugging AJAX apps - Part I - View the actual Html source

Posted by: the telerik blogs, on 20 Feb 2006 | View original | Bookmarked: 0 time(s)

Debugging AJAX apps can be very tricky. The technology went mainstream relatively soon and development tools are still catching up, so you do need to use a bag of neat tricks AND dirty hacks to see what is really going on. I've decided to create a series of blog posts dedicated on how you can tackle common AJAX problems.

Part I - View the actual HTML source.

This one sounds easy. Hey, just select "View Source" from the browser and voila, check out the generated Html. Of course, in AJAX world, things are never that easy. "View Source" actually returns the source of the original page - any Javascript / DOM modifications after the AJAX request are not visible. What do we do now if we want to see the current Html dump?

IE: Use this clever hack to return the current state of the page - typing "javascript:'<xmp>' + window.document.body.outerHTML+ '</xmp>'" in the address bar should do the trick.



FireFox: Use this neat FireFox extension to view the "Generated Source" instead of plain "View Source".


In part II I will talk about IDEs supporting AJAX (actually, the lack thereof) and what is the best IDE approach to AJAX today.

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 919 | Hits: 69

Similar Posts

  • Tip/Trick: Increase your VS screen real estate by disabling HTML Navigation Bar more
  • WebAii Testing Framework: From HTML to XAML and Back -- RadHtmlPlaceholder more
  • Going Controller-less in MVC: The Way Fowler Meant It To Be more
  • ASP.NET MVC and the templated partial view (death to ASCX) more
  • Donut Hole Caching in ASP.NET MVC more
  • Reporting Release History : Q1 2009 SP1 (version 3.0.9.430) more
  • ASP.NET MVC View Engine using VB.NET XML Literals more
  • ViewData mechanics and segmentation (excerpt from ASP.NET MVC in Action) more
  • ASP.NET MVC Design Gallery and Upcoming View Improvements with the ASP.NET MVC Release Candidate more
  • Session Slides and Samples from Microsoft ASP.NET Connections more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD