BUenas a todos, de nuevo vuelvo con este tema, ya he revisado mucho link, pero no logro encontrar algun tipo de guia o ayuda con respecto a este problema.
 
Tengo lo siguiente:
 
----------form_eliminar_bien.php-----------
 
 
//Menu Lista 1
 
<select name="select_numero_obilga" id="select_numero_obilga" onchange="cargarContenido()">
  <option></option>
  	  <?php
  		$base_path = "../../";
		require_once( $base_path . 'configuration.php' );
 
		$datos= new Jconfig();
		$db_host= $datos->host;
		$db_nombre=$datos->db; 
		$db_user=$datos->user; 
		$db_pass=$datos->password; 
 
		$conexion= mysql_connect($db_host, $db_user, $db_pass);
 
			mysql_select_db($db_nombre,$conexion);
 
			$consulta = "SELECT numero_obligacion FROM obligacion";
 
			if($resultado= mysql_query($consulta))		
				while ($query= mysql_fetch_array($resultado)){
			?>
			<option value ="<?php echo $query['numero_obligacion']; ?>"><?php echo $query['numero_obligacion']; ?></option>
			<?php }
				mysql_free_result($resultado);
				mysql_close(); 
			?>
 
 
//Menu lista 2
    <select name="select_ficha_catastral" id="select_ficha_catastral">
		<option></option>
 
        </select>
 
 
<script language="javascript">
function nuevoAjax()
{
    var xmlhttp=false;
     try 
    {
          xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
     } 
    catch (e) 
    {
          try 
        {
               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
          }
        catch (E) 
    {
   xmlhttp = false;
  }
 }
if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
{
  xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
 
 
 function cargarContenido()
{
    var t1, contenedor;
	//Select donde se cargaran los resultados
    contenedor = document.getElementById('select_ficha_catastral');
	//Valor seleccionado del Select inicial
    t1 = document.getElementById('select_numero_obilga').va  lue;
    ajax=nuevoAjax();
    ajax.open("GET", "previo.php?t1=" + t1.value,true);
    ajax.onreadystatechange=function(){
        if (ajax.readyState==4)
        {
            contenedor.innerHTML = ajax.responseText
        }
    }
    ajax.send(null)
}
</script>
 
 
---------previo.php--------------
 
 
 
<?php
 
    $previo=$_GET["select_numero_obilga"];
 
	$base_path = "../../";
		require_once( $base_path . 'configuration.php' );
 
		$datos= new Jconfig();
		$db_host= $datos->host;
		$db_nombre=$datos->db; 
		$db_user=$datos->user; 
		$db_pass=$datos->password; 
 
		$conexion= mysql_connect($db_host, $db_user, $db_pass);
 
			mysql_select_db($db_nombre,$conexion);
	$consulta = "SELECT id_referencia FROM bien WHERE numero_obligacion_FK='".$previo"'"; 
	$resultado= mysql_query($consulta);
 
	while ($query= mysql_fetch_array($resultado)){
	?>
						<option value ="<?php echo $query['id_referencia']; ?>"><?php echo $query['id_referencia']; ?></option>
	}
<?
 
?> 
 
 
No muestra error alguno, pero tampoco me esta desplegando los respectivos datos en el Menu Lista 2, que error estoy comentiendo??
 
Gracias a todos!! 
  
 
