Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/05/2011, 13:08
aenima_tool
 
Fecha de Ingreso: marzo-2011
Mensajes: 34
Antigüedad: 13 años, 1 mes
Puntos: 2
Respuesta: 2 Textfield con 2 botones

Código PHP:
Ver original
  1. <TD width=230 align=left>
  2. <INPUT type=text name="bscr_codigo" value="<% = lsBscrCodigo %>" size=14 maxlength=14 style="FONT-SIZE: 9" onFocus="document.forms[0].bscr_codigo.select(); this.value=''" id="bscr_codigo">
  3.  
  4. <INPUT type=image src="/pda/images/buscar1.jpg" id=buscar name=buscar onClick="return ejecutar('B')"></TD>

Ahi el buscar, y el guardar:

Código PHP:
Ver original
  1. <INPUT TYPE=text NAME="ean_1" value="<% = lsItemEAN1 %>" SIZE=15 MAXLENGTH=14 style="FONT-SIZE: 9" onFocus="document.forms[0].ean_1.select()"><FONT FACE="Arial, Helvetica, sans-serif" size=1 color=#006699>
  2.  
  3. <INPUT type=image src="/pda/images/grabar.jpg" id=grabar name=grabar onClick="return ejecutar('G')">

Las funciones:
Código Javascript:
Ver original
  1. function ejecutar(s) {
  2.       if (s == "G" || s == "B") {
  3.         document.forms[0].bdgs_accion.value = s;
  4.         return true;
  5.       }

La id buscar no está en ningun otro lugar, solo en estos codigos.