Ver Mensaje Individual
  #10 (permalink)  
Antiguo 28/01/2010, 17:49
Avatar de Fernarey1810
Fernarey1810
 
Fecha de Ingreso: noviembre-2008
Mensajes: 214
Antigüedad: 15 años, 5 meses
Puntos: 1
Pregunta Respuesta: Manejo de funciones semanticas

HOLA YO DE NUEVO. YA SOLUCIONE EL PROBLEMA. PERO AHORA NO ME ANDA ESTO.
Código Javascript:
Ver original
  1. document.getElementById("nombre").onkeypress = function() { permite(event,'num_car',15,'nombre'); }

Código HTML:
Ver original
  1. <input type="text" id="nombre" name="idUsuario" value="<?php if (isset($_POST['idUsuario'])) echo htmlspecialchars($_POST['idUsuario']); ?>">

Este es el input. Ahora LO Q FALLA ES event (Error: event is not defined). Yo tomo los datos de esa funcion asi

Código Javascript:
Ver original
  1. function permite(elEvento, permitidos, maxCaracter, nombreId) {
  2.     var elemento = document.getElementById(nombreId);            
  3.     .....
  4.     .....
  5.     .....
  6. }

Como hago para q pase EVENT???