How to see the html after modifications to the DOM

Last post 11-08-2007 12:22 PM by coderGeek. 6 replies.

Sort Posts:

  • How to see the html after modifications to the DOM

    11-06-2007, 1:16 PM
    • Loading...
    • coderGeek
    • Joined on 06-16-2007, 3:48 PM
    • Posts 63

    I have some code that modifies a <div> element.  I did a view source before and after the DOM element was modified.  And I saw with my two eyes that the DOM was modified as I wanted.  When I diff the sources, they are identical.  I guess when doing View Source it will show the page as it was downloaded from the web and not after the modification.  Is there a way that I can see the page after the modifications?  I can view the DOM in FF using Firebug but this doesn't help me in IE.

     Here are the particulars of why this is important:

    Call this one line of code to change the opacity of a div element. 

    AjaxControlToolkit.Animation.FadeOutAnimation.play($get(idOfDomElement), 15, 30, .2, 1, null);

    It works in IE, FF, and Opera fine.  In FF I can see that what it does is to change the style.opacity property of the div.  In IE, the element fades visually but the style.opacity is not modified.  In order to write unit tests for this, I need to know what changed.

    Thanks!

    Filed under: , , , ,
  • Re: How to see the html after modifications to the DOM

    11-06-2007, 3:55 PM
    • Loading...
    • jimmy q
    • Joined on 11-02-2006, 9:01 AM
    • Australia
    • Posts 2,489
    • Moderator

     I too would love to know if this is possible as the only way around this for me was to use FF with Firebug plug in.

     

  • Re: How to see the html after modifications to the DOM

    11-07-2007, 1:04 PM
    • Loading...
    • Phanatic
    • Joined on 10-07-2005, 3:48 AM
    • Redmond , WA
    • Posts 393

    if you are running IE 7 ,

    http://www.ie7pro.com/ would be helpful

    Phanatic
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: How to see the html after modifications to the DOM

    11-07-2007, 2:49 PM
    • Loading...
    • coderGeek
    • Joined on 06-16-2007, 3:48 PM
    • Posts 63

     Thanks but I do not think that IE7 Pro has any facility to allow viewing of the modified DOM.  If you know where it is, please point me to it.

     

    Thanks! 

  • Re: How to see the html after modifications to the DOM

    11-08-2007, 8:23 AM
    Answer
    • Loading...
    • TCavins
    • Joined on 05-23-2007, 10:06 AM
    • Detroit, MI
    • Posts 148

    You should be able to do an alert of the inner html of a specific DOM element or for the entire page if you want.

     Tim

  • Re: How to see the html after modifications to the DOM

    11-08-2007, 10:47 AM
    Answer
    • Loading...
    • Phanatic
    • Joined on 10-07-2005, 3:48 AM
    • Redmond , WA
    • Posts 393

    @Codergeek,

    ie7pro  is an IE addon that allows you to do "View Generated Source".

    Go ahead and download it to see how it works.

     

    Phanatic
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: How to see the html after modifications to the DOM

    11-08-2007, 12:22 PM
    • Loading...
    • coderGeek
    • Joined on 06-16-2007, 3:48 PM
    • Posts 63

    Thanks Phanatic! 

    Got it.  very simple.  in IE7Pro just right click and choose View Generated Source.

Page 1 of 1 (7 items)
Microsoft Communities
Page view counter