Find Jobs
Hire Freelancers

IE selection range javascript function

$5-10 USD

Cancelado
Publicado hace casi 14 años

$5-10 USD

Pagado a la entrega
I need to have a javascript function compatible with IE6 and above. Today it works fine with Mozilla like browsers. The problem I had is that I could not code the function to retrieve the user selection range for IE. There is a wysiwyg editor with a popup window to enclose the text selected by the user with some html markup. Here is the code working on Mozilla Firefox: <script language="javascript" type="text/javascript"> function getRange() { var userSelection = getUserSelection(); if ([login to view URL]('Microsoft') != -1) { alert("Please use Firefox."); } if ([login to view URL]) { if ([login to view URL] > 0) { return [login to view URL](0); } } } function getUserSelection() { var oName = [login to view URL]; if ([login to view URL]('Microsoft') == -1) { var oEditor = [login to view URL]("idContent"+oName); var oContentArea = [login to view URL]; var oSel = [login to view URL](); } else { var oEditor = [login to view URL]("idContent"+oName); var oContentArea = [login to view URL]; var oSel = [login to view URL](); } return(oSel); } function insertLexiconEntry(lexiconEntryId) { var span = [login to view URL]('span'); [login to view URL] = "$tooltipClassName"; [login to view URL] = "$tooltipDomId"; var range = getRange(); [login to view URL](span); } </script> As you can see the getRange function does not yet care for IE. It should. The job is to make this function return the range on IE6 and above so that it can be used by the other above functions.
ID del proyecto: 3662716

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 14 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de $9 USD por este trabajo
Avatar del usuario
See private message.
$8,50 USD en 14 días
5,0 (13 comentarios)
3,4
3,4
Avatar del usuario
See private message.
$8,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de FRANCE
Aix en Provence, France
4,9
22
Forma de pago verificada
Miembro desde ene 30, 2006

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.