Internet Explorer textNode events

    Date: 07/03/06 (Web Development)    Keywords: html, java

    You people have been very helpful so far. The discussions we've had on here brought around more innovative ideas and new challenges (which is good). One of those is:

    I am looking for a way to assign a click handler to a document (in Internet Explorer) in such a way that I would be able to distinguish what text node was clicked by the user if a parent element contains more than 1.

    Example:


    text1
    text2
    text3



    Keeping in mind that I have no control over HTML (it will be provided by the user), I need to come up with a JavaScript function that will handle a user click. In the case above, Internet Explorer will consider the div to be the source of the click event, so there is no way to find out whether text1 or text3 was clicked.

    Is there some IE object/method/function/property that I am not aware of that can perfom such a task? I cannot wrap any text in tags (like span) because I can't touch the HTML.

    Thanks for advice,
    -Daniel

    Source: http://community.livejournal.com/webdev/332429.html

« Event for SF Bay Area... || php printing with styles »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home