...

View Full Version : Script not working in Fire Fox



VorlonShadow
10-17-2005, 08:04 PM
I've got a script that I use to allow user to insert "mail merge" fields into an e-mail. This script works just fine in IE, but does not work in Fire Fox. Any ideas why?

<script language=javascript type="text/javascript">
<!-- Hide script from older browsers
function insCode() {
document.EMail.Message.focus()
var rng=document.selection.createRange();
rng.text=document.EMail.InsCode.value;
rng.select();
}
// -->
</script>

Thanks,
Jesse

martin_narg
10-17-2005, 10:52 PM
you would need to use the Gecko DOM (FireFox) Range object: http://developer.mozilla.org/en/docs/DOM:range

Hope this helps

m_n



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum