views:

55

answers:

1

Hi

Is there cross-browser javascript plugin (jquery/any js library) for handling ranges, especially Firefox's range object(https://developer.mozilla.org/en/DOM/range) and Internet Explorer's TextRange (http://www.webreference.com/js/column12/trmethods.html)?

Thanks Srikanth

+1  A: 

I'm in the early stages of working on one called Rangy at the moment: http://code.google.com/p/rangy. I expect to have a release ready within a couple of weeks. In the meantime, your best bet is probably IERange, which provides a DOM Range wrapper around IE's TextRange.

Tim Down
Thanks. As of now IERange seem to suit my need (especially the method extractContents()). I am eager to see Rangy in action, I will wait for that.
Srikanth Vittal
Initial pre-alpha version of IERange is now available: http://code.google.com/p/rangy/downloads/list
Tim Down