title: ASP Classic inline code + jQuery: How to do ajax call
body: <p>I've working on a large asp classic site and trying to introduce couple of new vbscript function that will be triggered from jQuery based on some event, after which jQuery will do a partial update of the page.</p>
  
  <p>My question is: If all the code (ASP classic vbscript function + html and jquery) are all in the same file (there are many vbscript functions in this page), how can i make a ajax call to a function in this page, get it to be processed on server and respond back.</p>
  
  <p>So for example:</p>
  
  <pre><code>    &lt;html&gt;
          &lt;head&gt;
              .....
                  &lt;%
                      Function  checkUsername( ....)
                          ....
                      end function
  
                      Function  checkCredentials( .... )
                        .....
                      end function
                  %&gt; 
              &lt;script&gt;
              $(document).ready(function(){
                  $( "#username" ).blur(function() {
                      var username = $('#username_field").val();
                      checkUsername(username);
                  });
  
                  function checkUsername(usr) //the function that loads pages via AJAX            
                  {
                      $.ajax({    
                          type: "GET",
                          url: "WHAT TO PUT HERE?????",
                          data: usr,
                          cache: false,   
                          success: function(msg){
                              ....
                          }
                      });
                  }
              });
              &lt;/script&gt;
          &lt;/head&gt;
          &lt;body&gt;
              ....
              Username: &lt;input type="text" name="username" id="username"&gt;
                              .....
          &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>