W3C home > Mailing lists > Public > www-html@w3.org > August 1998

How to trigger HTTP requests programatically?

From: Amit Rekhi <amit@abinfosys.com>
Date: Mon, 10 Aug 1998 19:11:26 +0530
Message-Id: <00fa01bdc464$9bb66ec0$0101a8c0@server.abinfosys.com>
To: "HTML LIST" <www-html@w3.org>
Hello,

How can I programatically send an HTTP request for a file on the server?


SCENARIO
I have an ASP script, called test.asp as follows :-

.
.
.
  <%
     Set RS = Server.CreateObject("ADODB.RecordSet")
     connect = "dsn=pt;uid=sa;pwd=;"
     RS.Open "exec MyStoredProc", connect , adDynamicOpen
  %>
.
.
.
I want to load / trigger test.asp from the following HTML file.
(See ***)How do I do it?
.
.
.
  <HTML>
         <SCRIPT LANGUAGE="JSCRIPT">
   function LoadASP()
   {
***    //Here I want to invoke test.asp. How do I do it?
   }
         </SCRIPT>
         <BODY>
         <FORM name="TestForm">
         <INPUT type="button" name="HISTORY" value="VIEW HISTORY"
OnClick="LoadASP()"/>
    </FORM>
   </BODY>
  </HTML>



Thanks for any suggestions :-)

       AMIT
Received on Monday, 10 August 1998 09:38:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:37 GMT