Results 1 to 2 of 2

Thread: Pass 2 values in href

  1. #1
    Join Date
    Mar 2007

    Pass 2 values in href

    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:
    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) the ajax.js page, read the value this way:
    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);
            document.getElementById("risultati").innerHTML = "";
    3) then it goes to the url = "ajax.asp?id=1&img=" + Stringa.toUpperCase();
    4) I need to pass also the value of id
    5) i can read it in javascript in the detail page in this way:
    HTML Code:
    <script language="javascript">document.write("<%=work_id")</script>
    How can i pas that value to ajax.js and insert in the url value?
    Thank you very much

  2. #2
    Join Date
    Mar 2007
    any help would be very appreciated, i can't get out this issue...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles