Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/11/2009, 17:49
Avatar de zerokilled
zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años, 10 meses
Puntos: 1485
Respuesta: Javascript no se ejecuta, ni al servlet tampoco

Cita:
Iniciado por HackmanC Ver Mensaje
Según la especificación del HTML, la etiqueta FORM no tiene el evento OnClick(). Es decir, no debería de existir ese evento, pero algunos browsers sí lo implementan...
aclarar algo sobre ese comentario. tecnicamente cualquier elemento puede contener cualquier evento. una cosa es si ese elemento puede o no producir el evento. pero desde XHTML ciertamente algunos elementos pueden tener ciertos eventos en linea (inline event). ahora bien, en el estandar XHTML si se define que FORM puede tener evento onclick.
Código:
<!ATTLIST form
  %attrs;
  action      %URI;          #REQUIRED
  method      (get|post)     "get"
  enctype     %ContentType;  "application/x-www-form-urlencoded"
  onsubmit    %Script;       #IMPLIED
  onreset     %Script;       #IMPLIED
  accept      %ContentTypes; #IMPLIED
  accept-charset %Charsets;  #IMPLIED
  >

<!ENTITY % attrs "%coreattrs; %i18n; %events;">

<!ENTITY % events
 "onclick     %Script;       #IMPLIED
  ondblclick  %Script;       #IMPLIED
  onmousedown %Script;       #IMPLIED
  onmouseup   %Script;       #IMPLIED
  onmouseover %Script;       #IMPLIED
  onmousemove %Script;       #IMPLIED
  onmouseout  %Script;       #IMPLIED
  onkeypress  %Script;       #IMPLIED
  onkeydown   %Script;       #IMPLIED
  onkeyup     %Script;       #IMPLIED"
  >
__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.