![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/11/2012, 13:42
|
![Avatar de andreamorante184](http://static.forosdelweb.com/customavatars/avatar473937_2.gif) | | | Fecha de Ingreso: agosto-2012
Mensajes: 65
Antigüedad: 12 años, 5 meses Puntos: 0 | |
Respuesta: Mostrar solo las imágenes del select name + Php Hola les cuento que lo pude realizar con Ajax Archivo Ajax
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 carga_act(){
divResultado = document.getElementById('principal');//div donde se cargara
galeria= document.getElementById('galeria').value;//valor del Año
ajax = objetoAjax();
ajax.open("POST", "mostrarImagen.php", true);
ajax.onreadystatechange = function(){
if (ajax.readyState==4){
divResultado.innerHTML = ajax.responseText
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send("galeria="+galeria)
}
Archivo de insertar Imagen donde esta el combobox cree una <div id="principal"></div> donde llamo mostrar.php un nuevo archivo
y bueno me funciona como yo queria gracias a Todos....
__________________ Andrea Morante |