disturbo nuovamente su questo script
non riesco a rendere "variabile" l' id del Div che contiene i dati importati
sapreste dirmi come passare l'informazione a myHandler2() su quale div deve andare ad agire
codice:<script> var myRequest = null; function CreateXmlHttpReq2(handler) { var xmlhttp = null; try { xmlhttp = new XMLHttpRequest(); } catch(e) { try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } } xmlhttp.onreadystatechange = handler; return xmlhttp; } function myHandler2() { var idname = 'galleryname'; //questo lo vorrei prenderlo dal link come gid if (myRequest.readyState == 4 && myRequest.status == 200) { e = document.getElementById(idname); e.innerHTML = myRequest.responseText; } } function galleryimglist(idname,gid) { //qui prendo idname ma come lo passo? CreateXmlHttpReq2(myHandler2(idname)); non funziona myRequest = CreateXmlHttpReq2(myHandler2); myRequest.open("GET","gallery.php?gid="+gid); myRequest.send(null); } </script> 1 2 <div id="galleryname"></div>
grazie nuovamente in anticipo![]()

disturbo nuovamente su questo script
Rispondi quotando