Hi,
i need a little help:
1) i have done an image gallery with ajax.
2) the thumb are in the page detail.asp, clicking on the thumbs, it pass a value to ajax.js in this way:
3) the ajax.js page, read the value this way:HTML Code:<a href="#" onClick="Richiesta('1');"> <img src="../images/<%=(rs_lavori.Fields.Item("Foto1").Value)%>_t.jpg" alt="Clicca per visualizzare un'anteprima" width="120" height="80" border="0"></a>
3) then it goes to the url = "ajax.asp?id=1&img=" + Stringa.toUpperCase();HTML Code:function Richiesta(Stringa) { if (Stringa.length > 0) { var url = "ajax.asp?id=1&img=" + Stringa.toUpperCase(); XMLHTTP = RicavaBrowser(CambioStato); XMLHTTP.open("GET", url, true); XMLHTTP.send(null); } else { document.getElementById("risultati").innerHTML = ""; } }
4) I need to pass also the value of id
5) i can read it in javascript in the detail page in this way:
How can i pas that value to ajax.js and insert in the url value?HTML Code:<script language="javascript">document.write("<%=work_id")</script>
Thank you very much


Reply With Quote
Bookmarks