Article View: es.comp.lenguajes.java
Article #475Re: Páginas jsp y javascript.
From: Manuel
Date: Mon, 07 May 2007 15:06
Date: Mon, 07 May 2007 15:06
43 lines
2625 bytes
2625 bytes
On 4 mayo, 23:04, GRUPOS DE JAVA <omm1...@gmail.com> wrote:
> INDEX.JSP
> <%@ page contentType="text/html; charset=iso-8859-1" language="java"
> errorPage="error.jsp" %>
> <script>
> // radio button seleccionado
> function validarSiNumero(numero){
> if (!/^([1-65535])+$/.test(numero))
> alert("El valor " + numero + " no es un número valido");
> }
> </script>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1" />
> <title>ETC</title>
> ...
> ...
> <input type="radio" name="PUERTOS" value="opcion5" CHECKED/>
> ESPECIFICOS
> <input name="ESPECIFICOS" type="text" size="40" maxlength="50"
> id="puertosE" onChange="validarSiNumero(this.value);">
> ....
> ...
> </form>
> </body>
> </html>
>
> ESPERO QUE TE SIRVA, PARA MI SI JALA SALUDOS.
Eso no es lo que quiero hacer. Además de que eso sí me funcionaba.
Yo lo que quiero es meterle algo así en el medio de <body>:
<script>
alert("hola mundo");
</script>
Y que se ejecute cuando la pagina carga y llega a ese punto del
codigo.
Un saludo y gracias por contestar
Technical Details
Message-ID:
<1178550372.875880.157930@q75g2000hsh.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mailReferences:
<1178203794.010140.148230@c35g2000hsg.googlegroups.com> <59v0niF2l7i9lU2@mid.individual.net> <1178229766.811311.41250@n59g2000hsh.googlegroups.com> <1178312645.392470.77660@l77g2000hsb.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,5f1ade08b7d61562 X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail From: Manuel <mfc1981@gmail.com> Newsgroups: es.comp.lenguajes.java Subject: Re: Páginas jsp y javascript. Date: 7 May 2007 08:06:12 -0700 Organization: http://groups.google.com Lines: 44 Message-ID: <1178550372.875880.157930@q75g2000hsh.googlegroups.com> References: <1178203794.010140.148230@c35g2000hsg.googlegroups.com> <59v0niF2l7i9lU2@mid.individual.net> <1178229766.811311.41250@n59g2000hsh.googlegroups.com> <1178312645.392470.77660@l77g2000hsb.googlegroups.com> NNTP-Posting-Host: 212.163.35.34 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1178550373 30757 127.0.0.1 (7 May 2007 15:06:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 7 May 2007 15:06:13 +0000 (UTC) In-Reply-To: <1178312645.392470.77660@l77g2000hsb.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 XISASVR1 Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=212.163.35.34; posting-account=H-YqNA0AAAAaCJhGy7zX3S71sySTjbQZ