Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/09/2009, 18:03
Avatar de zeuzft
zeuzft
 
Fecha de Ingreso: junio-2009
Ubicación: peru
Mensajes: 358
Antigüedad: 14 años, 10 meses
Puntos: 2
Exclamación Respuesta: Duda sobre focus??!!

este es mi enviaQuery:
Código PHP:
if (!empty($_GET['prtip']))
    if ($_GET['prtip']=='EP'){
      echo "<table border='0' class='bordenegro'>
            <tr>
                <td><b>Equipo:</b></td>
                <td>";?>
        <select name="equipopredefinido" size='1' class='combo' onchange="enviaQuery('divResultado','myajax.php?opcion=llenar_carritop&ep_id='+this.options[this.options.selectedIndex].value);" onblur="enviaQuery('divmuestra','myajax.php?opcion=verdolares');">
                    <option selected>[Seleccionar Equipo Predefinido]</option>
                    <?
                    $miconexion
->consulta("Select * from equipo_predefinido where ep_pas<>1");
                    while(
$row mysql_fetch_array($miconexion->Consulta_ID))
                    {
                    
$nomep=$row['ep_nom'];
                    
$epid=$row['ep_id'];
                    echo
"<option value=$epid>";                    
                    echo 
"$nomep</option>";
                    }
                    
?>
        </select>
                <? echo "</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><b>Dias de Vencimiento de la Proforma</b></td>
                <td><input type='text' size='3' class='form' name='dprof'/></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><b>Estado:</b></td>
                <td>"
;?>
                <select name='estprof' size='1' class='form' onChange="enviaQuery('divResultado13','myajax.php?opcion=estprof&estprof='+this.options[this.options.selectedIndex].value);"><option value='V' <?if ($prof_est=="V") echo"selected";?>>Vencido</option><option value='A' <?if ($prof_est=="A") echo"selected";?>>Activo</option>
                </select><?echo "</td>
            </tr>
            <tr>
                <td><b>Descripcion:</b></td>
                <td colspan='12'><input type='text' class='form' name='prof_desc' size='100' /></td>
            </tr>
          </table>"
;
    }else{
      echo 
"<table border='0' class='bordenegro'>
            <tr>
                <td><b>Cantidad:</b></td>
                <td><input type='text' size='3' class='form' name='cantprof' /></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><b>Dias de Vencimiento de la Proforma</b></td>
                <td><input type='text' size='3' class='form' name='dprof'/></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><b>Estado:</b></td>
                <td>"
;?>
                <select name='estprof' size='1' class='form' onChange="enviaQuery('divResultado13','myajax.php?opcion=estprof&estprof='+this.options[this.options.selectedIndex].value);"><option value='V' <?if ($prof_est=="V") echo"selected";?>>Vencido</option><option value='A' <?if ($prof_est=="A") echo"selected";?>>Activo</option>
                </select><?echo "</td>
            </tr>
            <tr>
                <td><b>Descripcion:</b></td>
                <td colspan='12'><input type='text' class='form' name='prof_desc' size='100' /></td>
            </tr>
          </table>"
;    
        }
tambien no me funciona este foco no se si me puedas ayudar:
Código PHP:
<td><a href='javascript:;' onclick="enviaQuery('divResultado','myajax.php?opcion=borrar_itempr&i=$i&tipo=fac');document.form11.regal.focus()\"><img src='images/trash.gif' border='0'></a></td> 
me dice que regal no es un objeto o es nulo; pero la caja si existe yo la veo no se que mas pueda ser