Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/06/2010, 09:07
TheDark03
 
Fecha de Ingreso: mayo-2010
Ubicación: Lima, Peru.
Mensajes: 176
Antigüedad: 14 años
Puntos: 6
Respuesta: problema con doctype public con funcion javascript en firefox

gracias por responder... aca les dejo el codigo, no me anime a ponerloo por q era demasiado pero ahi les va...

Código Javascript:
Ver original
  1. function mandapais()
  2.     {
  3.         var valorid;
  4.         valorid=document.all.grupo1.value;
  5.  
  6.         if (valorid=="TOURS ESPECIAL")
  7.         {
  8.  
  9.             document.getElementById("tourstailor").style.display="none";
  10.             document.getElementById("nover").style.display="inline";
  11.  
  12.             document.getElementById("ocultadatos1").style.display="none";          
  13.             document.getElementById("ocultadatos2").style.display="none";          
  14.             document.getElementById("ocultadatos3").style.display="none";                                  
  15.  
  16.  
  17.            
  18.             document.all.codTailorMade.value="???"
  19.             document.all.NameTailorTours.value="???"
  20.             document.all.LenghtTaylorMadeTrip.value="???"
  21.  
  22.             document.all.Amount.removeAttribute('readOnly');
  23.  
  24.  
  25.            
  26.             document.all.txt_precioDeposit.value="Amount"
  27.             document.all.txt_finalbalance.value="Amount"
  28.             document.all.txt_preciofullpayment.value="Amount"
  29.            
  30.             doAjax("buscapais.asp","valorid=" + valorid + "&tipocombo=toursfinal" , "cargapais", "get", "0");  
  31.            
  32.         }
  33.         else
  34.         {
  35.             document.getElementById("tourstailor").style.display="none";
  36.             document.getElementById("nover").style.display="inline";
  37.  
  38.             document.getElementById("ocultadatos1").style.display="none";          
  39.             document.getElementById("ocultadatos2").style.display="none";          
  40.             document.getElementById("ocultadatos3").style.display="none";                                  
  41.  
  42.  
  43.            
  44.             document.all.codTailorMade.value="???"
  45.             document.all.NameTailorTours.value="???"
  46.             document.all.LenghtTaylorMadeTrip.value="???"
  47.  
  48.             document.all.Amount.removeAttribute('readOnly');
  49.  
  50.  
  51.            
  52.             document.all.txt_precioDeposit.value="Amount"
  53.             document.all.txt_finalbalance.value="Amount"
  54.             document.all.txt_preciofullpayment.value="Amount"
  55.            
  56.             doAjax("buscapais.asp","valorid=" + valorid + "&tipocombo=toursfinal" , "cargapais", "get", "0");      
  57.         }
  58.        
  59.        
  60.        
  61.  
  62.     }
  63.    
  64.     function cargapais(texto)
  65.     {
  66.         var array,tourspais,contarray,combo;
  67.         tourspais=texto.split("<>-*-<>"); //[0]-->datos // [1]-->tipobusca
  68.         array=tourspais[0].split("<-*->");
  69.         contarray=array.length;
  70.  
  71.         document.all.Tour.value="";
  72.  
  73.         combo=document.all.Tour
  74.         for (var i = combo.options.length;i>=0;i--)
  75.             combo.options[i] = null;
  76.  
  77.         for (var i = combo.options.length;i>=0;i--)
  78.             combo.options[i] = null;
  79.  
  80.         combo.options[0] = new Option("--SEARCH--", 0);    
  81.         for (var i = 1;i<contarray+1;i++)
  82.         {
  83.             var array2;
  84.             array2=array[i-1].split("-");
  85.             combo.options[i] = new Option(array2[1], array2[0]);    
  86.         }
  87.     }
  88.    
  89.  
  90.  
  91.     function pasanombretors()
  92.     {
  93.         //document.all.xtitulo.value=document.all.Tour.options[document.all.Tour.selectedIndex].text
  94.         document.all.xtitulo1.value=document.all.Tour.options[document.all.Tour.selectedIndex].text
  95.         document.all.NameTailorTours.value=document.all.xtitulo1.value
  96.        
  97. /*      var valorid;
  98.         valorid=document.all.Tour.value;
  99.         doAjax("../buscapreciotourscliente.asp","codtours=" + valorid + "&tipomoneda=2" , "cargaprecio", "get", "0");
  100. */     
  101.     }