|    
			
				21/04/2007, 09:50
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: febrero-2004 Ubicación: En Copiapó 
						Mensajes: 52
					 Antigüedad: 21 años, 8 meses Puntos: 0 |  | 
  |  Re: Obtener solo el numero de un input  
  Otra consulta ves algun error en esa línea?<script>
 var ajaxp = new sack();
 var currentProductID=false;
 function getProductData(campo)
 {
 var	numero = campo;
 var	numero = numero.replace(/\D/g,'');
 var codigo_producto = campo;
 var detalle_producto = 'detalle_producto"+numero"';
 if(codigo_producto.length>4 && codigo_producto!=currentProductID){
 currentProductID = codigo_producto
 ajaxp.requestFile = 'getProd.php?codigo_producto='+codigo_producto+'&d  etalle_producto='+detalle_producto;	// Specifying which file to get
 ajaxp.onCompletion = showProductData;	// Specify function that will be executed after file has been found
 ajaxp.runAJAX();		// Execute AJAX function
 }
 
 }
 
 function showProductData()
 {
 var formObjp = document.forms['clientForm'];
 eval(ajaxp.response);
 }
 
 </script>
 
				__________________:pirata:
     |