🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3204

javascript incompatibilidad firefox

#3204
From: Rickoj
Date: Fri, 29 Apr 2005 21:46
18 lines
1464 bytes
tengo la siguiente funcion en javascrit
function CopiardeClip(theField)
{
var tempval=eval("document."+theField)
tempval.focus()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Paste")
    }
}

lo que hace es copiar un texto almacenado en el portapapeles a un campo de
un formulario, en IE funciona bien pero en firefox no funciona, solo
funciona si con el mouse doy "pegar", como generalmente programo en ie, y no
se mucho de incompatibilidades cual es el comando que no funciona en firefox
(para poder arreglarlo)

se agradece
Technical Details
Message-ID: <d4u9v4$hco$1@news1.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,19f0d6ff79abb71f,start
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail
From: "Rick_oj" <rick_oj@[sin-esto]tutopia.com>
Newsgroups: chile.comp.programacion
Subject: javascript incompatibilidad firefox
Date: Fri, 29 Apr 2005 17:46:23 -0400
Organization: Varios
Lines: 21
Message-ID: <d4u9v4$hco$1@news1.nivel5.cl>
NNTP-Posting-Host: pc-97-201-120-200.cm.vtr.net
X-Trace: news1.nivel5.cl 1114811172 17816 200.120.201.97 (29 Apr 2005 21:46:12 GMT)
X-Complaints-To: news@news1.nivel5.cl
NNTP-Posting-Date: Fri, 29 Apr 2005 21:46:12 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478