Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2008, 17:33
helacer
 
Fecha de Ingreso: mayo-2006
Ubicación: Bogotá
Mensajes: 2.061
Antigüedad: 18 años, 11 meses
Puntos: 50
Error en funcion

Internet explorer encunetra un error en esta funcion medice qye es de sintaxis pero no hallo que sera

Código PHP:
<script language="javascript">
function ComponerLista(xPro) 
{
    document.forms.Search.s_tipo.disabled = true;
    document.forms.Search.s_RADI_DEPE_ACTU.length = 0;
    CargarDependencia(xPro);
    document.forms.Search.s_tipo.disabled = false; 
}
function CargarDependencia(xCiu)
{
var o
document.forms.Search.s_RADI_DEPE_ACTU.disabled = true;
<?
$CrgDependencia 
mssql_query('SELECT depe_nomb, depe_codi, tipo FROM dependencia WHERE tipo > 0 ORDER BY depe_nomb ASC');
while (
$DatDependencia mssql_fetch_array($CrgDependencia)) 
    {
?>
if (xCiu == <?php echo $DatDependencia["tipo"]; ?>
    {
        o = document.createElement("OPTION");
        o.text = '<?php echo $DatDependencia["depe_nomb"]; ?>';
        o.value = '<?php echo $DatDependencia["depe_codi"]; ?>';
        document.forms.Search.s_RADI_DEPE_ACTU.options.add (o);
    }
<?php
    
}
    
mssql_free_result($CrgDependencia);
?> 
    document.forms.Search.s_RADI_DEPE_ACTU.disabled=false;
}
</script>

Ayuda gracias