mi codigo es este:
Código:
  
 function objetoAjax(){
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 mostrar_albumes()
{
	ajax=objetoAjax();
  //uso del medotod POST
  //archivo que realizará la operacion
  //registro.php
var resul = document.getElementById("contenedor_albums");
  ajax.open("POST", "mostrar_albumes.php",true);
  ajax.onreadystatechange=function() {
  if (ajax.readyState==4) {
  //mostrar resultados en esta capa
resul.innerHTML = ajax.responseText;
  }
 

