Porting Range in Mozilla from IE

S

Stefano

Hi all,

I am porting these 2 instructions from IE to Mozilla 1.4
select_doc =document.selection;
range_doc=select_doc.createRange();

Mozilla has window.getSelection and document.createRange() so i have
thought
this:
var range_doc=document.createRange();
range_doc.setStart(active_el,range_doc.startOffset);
range_doc.setEnd(end_el,range_doc.endOffset);

where active_el and end_el are elements that specify about start and
end of selection.
I am obtaining errors over offset??
Why?

Can you help me?

Thanks Stefano
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top