Ver Mensaje Individual
  #19 (permalink)  
Antiguo 22/08/2008, 14:20
art33
 
Fecha de Ingreso: agosto-2008
Mensajes: 272
Antigüedad: 16 años, 7 meses
Puntos: 4
Respuesta: evento "focus"? o?

aki esta
Código PHP:
<script>
function 
tab_btn(event)
{
    var 
event.keyCode event.keyCode event.which event.which event.charCode;
    if (
== 9
    {
        
x_busca.element().focus(); 
        return 
false;
    }
    return 
true;
}    
</script>
<table summary="Meeting Results" width="75%" height="2%" border="0" cellpadding="0" cellspacing="1" bordercolor="#B1C3D9" align="center">
<tbody id="lineaPedido" class="fondo" align="center">        
  <tr>
    <td height="18" colspan="9" align="center" background="images/bg.JPG" bgcolor="#E0E0E0" scope="col"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">Pedidos</font></td>
  </tr>
 
 <tr>
    <th height="18" background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">#</span></th>
    <th height="14" background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7" style="text-align:center">PRODUCTO</span></th>
    <th background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">UDM</span></th>
    <th align="center" background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">DESCRIPCION</span></th>
    <th background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">EXISTENCIA</span></th>
    <th background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">ZONA</span></th>
    <th height="14" background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">PRECIO</span></th>
    <th height="14" background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">CANTIDAD</span></th>
    <th background="images/bginp.jpg" bgcolor="#E0E0E0" scope="col"><span class="Estilo7">IMPORTE</span></th>
 </tr>  
 <tr>
<!--     En ajax.js de la funcion añadir existe una lista que debe contener todos los campos de esta tabla 
 -->    <th width="20" height="14" background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col" id="lineaPedido2"><span class="Estilo4 Estilo5 Estilo6">1</span></th>
    <th width="50" height="14" background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col"><input type="text" id="Item" class="input" style="width:57px; height:14px; border-width:0px"  onblur="RecuperaDescripcion(this.id,this.value,'Itemno','Uomcode Description','datos_articulo')" maxlength="7"/></th>
    <th background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col" width="70"><div id="datos_udm" style="font-size:14px"></div></th>
    <td  width="340" align="center" background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col"><div id="datos_articulo" class="Estilo3" style="font-size:10px; font-weight: bold"></div></td>
    <th background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col" width="100"><div id="datos_ext1" style="font-size:14px"></div></th>
    <th background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col" width="60"><div id="datos_zon1" style="font-size:14px"></div></th>
    <td width="70" height="14" valign="middle" background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col">
      <div align="left"><div class="Estilo3" style="font-size:12px">$
          <input type="text" id="precio" class="input" style="width:50px; height:14px; text-align:center;border-width:0px" maxlength="15"/>
      </div></div></td>
    <th width="50" height="14" background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col"><input type="text" id="cantidad" class="input"  style="width:50px; height:14px; text-align:center;border-width:0px"  onblur="calculaPrecio(document.getElementById('precio').value,this.value); anadir(); document.getElementById('Item').focus(); document.getElementById('Item').value='';" onKeyDown="return tab_btn(event);"/></th>
    <th background="images/bodyarea-bg.gif" bgcolor="#E0E0E0" scope="col" width="57"><span id="importe" class="Estilo3" style="font-size:11px;">&nbsp;</span></th>
  </tr>
</tbody>
</table> 
esta bien no?... aver k pasa