Results 1 to 3 of 3

Thread: Synchronizing HTML with the page

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Location
    Southern California
    Posts
    14

    Synchronizing HTML with the page

    I need to create a HTML viewer/scraper tool, so I will have HTML in a window with the corresponing page beside it. I might also have a tree (hierarchical) view. This is for a Windows environment.

    I do not know how to get the HTML to scroll into view when the page is clicked. In other words, if I click on a paragraph in the page, I need to see the corresponding p element in the HTML window.

    If anyone has a clue about how to do that, I hopefully can figure out the details.

  2. #2
    Member pode1's Avatar
    Join Date
    Dec 2002
    Location
    Córdoba-Argentina
    Posts
    52
    Do this onclick event ....
    <p onclick= "window.parent.frames('otherframe').scrollInto View (#marker)" >

    or something like that ... don´t remember the proper syntax.
    Hope it helps!

  3. #3
    Hmmm... sounds like all you really need is to not re-invent the wheel.

    Check out FireBug (for Mozilla Firefox <3.0)

    Of course, if you absolutely *must* do it the way you are requesting, then you should also check into a JavaScript framework like JQuery which allows you to simply integrate things like scrolling to/through your source code

    :-)
    "Study the past if you would define the future." - Confucius

Posting Permissions

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