Find the position in the HTML code of a click in a HTML page

From: Richard (grin_at_unice.fr)
Date: 03/29/04


Date: Mon, 29 Mar 2004 22:15:24 +0200

Hello,

I display an HTML page with a JEditorPane (other solutions are good for
me). The user clicks in the page and I would like to get the
correspondent position in the HTML code in order to get the first table
that follows this click (or else the table inside which the user clicked).

With getCaretPosition I get the position in the displayed HTML page but
not in the HTML code.

Is there a simple solution for that?

Thanks in avance for your answers.

Richard



Relevant Pages

  • Re: 96 DPI /120 DPI conflict - a possible solution
    ... having some problems displaying our new website on different PC's I ... our website to display properly on 120DPI widescreen laptops. ... after a bit of playing around with the HTML code (which I'm ...
    (microsoft.public.publisher.webdesign)
  • Ive become a hard-core userContent.CSS junkie !
    ... html, html * { ... display: inline!important;} ... Some of the schools have software developers... ... documenting the Source Code is different from documenting the app. ...
    (sci.physics)
  • Re: Redirecting between PHP Pages
    ... but at the very least in a php script. ... > on the outcome of the validation, you want to do one of two things: ... with the various bits of HTML being ... Display login form ...
    (comp.lang.php)
  • Re: formating text retrieved from a db
    ... You had to add HTML ... > If you were to display a phrase in your browser in simple HTML, ... They have a lofty name, ... has the formating with blank lines between the paragraphs etc. there is no ...
    (comp.lang.php)
  • Re: Am I on the right track here?
    ... that happens to be HTML ... | display rectangle for each video in that 4x2 layout, ... | display HTML relative to each rectangle. ... Once the server hands the page to the browser, the server, ...
    (comp.lang.php)