Hi,
Previously I have this code working in FF 0.9 in a web forum :
bodytext = (document.all) ?
document.select ion.createRange ().text:documen t.getSelection( );
if (selectedtext.c reateTextRange) {
selectedtext.ca retPos = document.select ion.createRange ().duplicate();
}
else if (document.postf orm.body.setSel ectionRange){
bodytext =
document.postfo rm.body.value.s ubstring(docume nt.postform.bod y.selectionStar t
,document.postf orm.body.select ionEnd)
}
With the advent of FF 1.0, this is now broken and returns bodytext as blank.
Does anyone know of any changes in the scripting that would have caused this
or suggest a remedy?
Cheers
Previously I have this code working in FF 0.9 in a web forum :
bodytext = (document.all) ?
document.select ion.createRange ().text:documen t.getSelection( );
if (selectedtext.c reateTextRange) {
selectedtext.ca retPos = document.select ion.createRange ().duplicate();
}
else if (document.postf orm.body.setSel ectionRange){
bodytext =
document.postfo rm.body.value.s ubstring(docume nt.postform.bod y.selectionStar t
,document.postf orm.body.select ionEnd)
}
With the advent of FF 1.0, this is now broken and returns bodytext as blank.
Does anyone know of any changes in the scripting that would have caused this
or suggest a remedy?
Cheers
Comment