Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/11/2010, 06:24
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 16 años, 10 meses
Puntos: 574
Respuesta: Error en internet explorer pero no en firefox!!!

Código HTML:
Ver original
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <title>Documento sin t&iacute;tulo</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. <script language="JavaScript" type="text/javascript"><!--
  5. function checkform(){
  6.     var form=document.getElementById("formulariDades");
  7.     if (form.formvar01_Nom.value == "") {
  8.         alert( "Introdueix el teu nom" );  
  9.         form.formvar01_Nom.focus();
  10.         return false ;
  11.     }
  12.     if (form.formvar02_PrimerCognom.value == "") {
  13.         alert( "Introdueix el teu primer cognom" );
  14.         form.formvar02_PrimerCognom.focus();
  15.         return false ;
  16.     }
  17.     if (form.formvar03_SegonCognom.value == "") {
  18.         alert( "Introdueix el teu segon cognom" );
  19.         form.formvar03_SegonCognom.focus();
  20.         return false ;
  21.     }
  22.     if (form.formvar04_Email.value == "") {
  23.         alert( "Introdueix una adreça de correu" );
  24.         form.formvar04_Email.focus();
  25.         return false ;
  26.     }
  27.     if (form.formvar05_DNI.value == "") {
  28.         alert( "Introdueix el teu número de DNI" );
  29.         form.formvar05_Comentari.focus();
  30.         return false ;
  31.     }
  32.     if (form.formvar07_Departament.value == "") {
  33.         alert( "Introdueix el teu departament" );
  34.         form.formvar07_Departament.focus();
  35.         return false ;
  36.     }
  37.     if (form.formvar08_Facultat.value == "") {
  38.         alert( "Introdueix el la teva facultat" );
  39.         form.formvar08_Fscultat.focus();
  40.         return false ;
  41.     }
  42.     if (form.formvar09_Relacio.value == "") {
  43.         alert( "Introdueix la teva relació contractual" );
  44.         form.formvar09_Relacio.focus();
  45.         return false ;
  46.     }
  47.     if ((form.formvar10_activitat1.checked==false)
  48.     && (form .formvar11_activitat2.checked==false)
  49.     && (form.formv ar12_activitat3.checked==false)
  50.     && (form.formvar13_a ctivitat5.checked==false)){
  51.         alert( "No has escollit cap activitat" );
  52.         form.activitat1.focus();
  53.         form.activitat2.focus();
  54.         form.activitat3.focus();
  55.         form.activitat5.focus();
  56.     return false ;
  57.     }
  58.  
  59.     return form.submit();
  60. }
  61. //-->
  62. <style type="text/css">
  63.     form#formulariDades input{
  64.         border:1px solid #cccccc;
  65.         background:#EDF4ED; }
  66.  
  67.     form#formulariDades textarea{
  68.         border:1px solid #cccccc;
  69.         background:#EDF4ED; cols:80; }
  70.    
  71.     form#formulariDades select{
  72.         border:1px solid #cccccc;
  73.         background:#EDF4ED;
  74.     }
  75. </head>
  76. <b>Inscripción</b><br />
  77. <form action="/servlet/Satellite?c=Page&cid=1126248553427&languag e=ca&pagename=i-UAB%2FPage%2FTemplatePageiPopUpWindowNoLogin" id="formulariDades" method="post" name="formulariDades" >
  78.     <input name="formmail_mailto" type="hidden" value="[email protected]" />
  79.     <input name="formmail_subject" type="hidden" value="suggeriments" />
  80.     <input name="formredirect_gotopage" type="hidden" value="ResultatFormulariIDES_ca" />
  81.     <input name="formprop_contenttype" type="hidden" value="text/plain; charset=UTF-8" />
  82.     <input name="formprop_xsltappling" type="hidden" value="XSLT_PATH_FORM_plain" />
  83. </form>
  84. </body>
  85. </html>

Necessitem el bla bla bla... es que els inputs que ens has posat son tots hidden ocults...

Necesitamos el bla bla bla... es que los inputs que nos pones son todos hidden ocultos.

Si agrego un input que no sea oculto lo veo en ff y en IE6.

Por lo demas no veo nada que pueda chocar con los distintos navegadores.

Esto

form.activitat1.focus();
form.activitat2.focus();
form.activitat3.focus();
form.activitat5.focus();

no tinen mucho sentido, vaya que el focus estará en activitat5 pero con esto

form.activitat5.focus();

tambien.

Te faltaba cerrar el comentario del script (//-->).

No puedo dicirte nada más con lo que nos pasas...

Sort!!!

Quim