Sign in to follow this  
Followers 0
PoorLuzer

IE DOM Hackery

4 posts in this topic

People,

I need help - technical ones, to implement a need I have.

I want to highlight certain text in IE 6 and insert some HTML code automatically into the corresponding section of the source code (DOM?).

For example,

I highlight some text in a web page opened in IE 6 and it gets highlighted in yellow (the script finds out which element corresponded to the selection and inserts/injects HTML to highlight it).

OR

I highlight some text in a web page opened in IE 6 and it gets transformed into a clickable link (the script finds out which element corresponded to the selection and inserts/injects HTML to turn it into a hyperlink).

and so on ...

Is this impossible to do?

Has this been done before?

Anyone even started out on doing this or something similar?

[suggestions on Chrome, FireFox, Safari... you get the idea.. nopes not interested.. IE its gonna be]

Share this post


Link to post
Share on other sites



We did something similar here.

Share this post


Link to post
Share on other sites

We did something similar here.

This code seems to address the issue of highlighting - I believe I can get that done already.

What I want to stress on is the "locate the element in the DOM/Source corresponding to the selected text/object in the rendered view" part.

But thanks anyways for some cool highlighting code!

However, hope everyone understands the primary focus of this thread now :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0