PoorLuzer Posted October 14, 2008 Share Posted October 14, 2008 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] Link to comment Share on other sites More sharing options...
PoorLuzer Posted October 14, 2008 Author Share Posted October 14, 2008 Has this been done before?Anyone even started out on doing this or something similar?Seems someone wanted to do something similar but "disappeared":http://www.autoitscript.com/forum/index.php?showtopic=53220 Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted October 14, 2008 Moderators Share Posted October 14, 2008 We did something similar here. Link to comment Share on other sites More sharing options...
PoorLuzer Posted October 14, 2008 Author Share Posted October 14, 2008 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 :-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now