🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1080

Re: ayuda con javascript

#1080
From: Rafael Meneses Osorio
Date: Mon, 08 Jan 2007 19:32
19 lines
1709 bytes
Rick_oj wrote:
> Hola buenas, necesito copiar los 4 primeros caracteres de campo de texto en

Hola

> javascript, dicho campo sera escrito por el usuario, y en uno de abajo, se
> obtendran los 4 primeros digitos
> como podria hacerlo? habia pensado en un for o algo asi, pero si el campo es
> correguido?
>

Deberias ejecutar el javascript en el evento onchange, por ejemplo:

http://www.w3schools.com/jsref/jsref_onchange.asp
> 
> -- 
> "Si aparece en la TV debe ser cierto"
> Gardfield
Technical Details
Message-ID: <1168284732.111693.280580@i15g2000cwa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i15g2000cwa.googlegroups.com!not-for-mail
References: <enr7rd$qcv$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,f8c2e109e88ce382
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i15g2000cwa.googlegroups.com!not-for-mail
From: "Rafael Meneses Osorio" <rafaparafernalia@gmail.com>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda con javascript
Date: 8 Jan 2007 11:32:12 -0800
Organization: http://groups.google.com
Lines: 20
Message-ID: <1168284732.111693.280580@i15g2000cwa.googlegroups.com>
References: <enr7rd$qcv$1@news.nivel5.cl>
NNTP-Posting-Host: 200.74.94.197
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1168284739 14979 127.0.0.1 (8 Jan 2007 19:32:19 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 8 Jan 2007 19:32:19 +0000 (UTC)
In-Reply-To: <enr7rd$qcv$1@news.nivel5.cl>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: i15g2000cwa.googlegroups.com; posting-host=200.74.94.197;
   posting-account=in9uYg0AAABNkRQtnCsRGLtpEXOsaWEv