SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)

    Question How to see innerHTML changes in HTML code?

    I'm using AJAX to dynamically change some parts of a webpage, putting the result into the right place using innerHTML. It works great, but when I ask my browser (IE6) for the HTML code, it shows the original code.

    Why?
    Is there a way to see the changed code?
    Last edited by guido2004; Sep 25, 2006 at 03:36.

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah view source won't show you the changed stuff you need either the ie developers toolbar or the similar thingy for firefox (can't remember) or a favelet that shows you the updated DOM.

    hint http://slayeroffice.com/?c=/content/tools/modi.html

  3. #3
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Malmö, Sweden
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Firefox + Firebug, and you're golden!

    https://addons.mozilla.org/firefox/1843/

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,863
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Or use a "View Source" bookmarklet in any web browser (particularly useful for checking any differences in the way IE processes the code).
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by felgall
    Or use a "View Source" bookmarklet in any web browser (particularly useful for checking any differences in the way IE processes the code).
    Thx for all your replies guys

    But, what is a "View Source" bookmarklet?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •