Silverlight: Handy Dynamic Javascript Debugger Favorite

Often you need to be able to View Source on a page that has injected dynamic javascript to see what you did, and,surprise – it’s not there. Here is a neat way to view source (including any dynamically generated elements or script):

 

 

 

What this does is simply using the <xmp> (“example”) tag to literally render  your “stuff” without parsing. You can add this to your browser’s favorites as an A-HREF link and that way you can simply choose the favorite to view the complete source on any page.  This is extremely useful when using the Silverlight Browser classes to manipulate the DOM of the underlying Page. Here’s a sample like (this may not work as Blogger does funny stuff, but you can still mouse over it):

Debug Js

Comments

  1. Where do you put the code in the favorite to view the JS source? Do you tag it on the end of the url in the browser? thank you.

    ReplyDelete
  2. You install the javascript code itself as the "Favorite". Wnen you want to view the dynamic source of a page you are on, you invoke the favorite.

    ReplyDelete

Post a Comment

Popular posts from this blog

Some observations on Script Callbacks, "AJAX", "ATLAS" "AHAB" and where it's all going.

IE7 - Vista: "Internet Explorer has stopped Working"

FIREFOX / IE Word-Wrap, Word-Break, TABLES FIX

System.Web.Caching.Cache, HttpRuntime.Cache, and IIS Recycles

FIX: Requested Registry Access is not allowed (Visual Studio 2008)