daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jun 5th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dojo.addOnLoad(function() {
  2.     dijit.byId("loginBox").show();
  3.  
  4.     dijit.byId("loginBox")._onSubmit = function() {
  5.  
  6.         elements = this.attr("value");
  7.  
  8.         username = elements.username;
  9.         password = elements.password;
  10.  
  11.         var response = dojo.xhrGet({
  12.             url: "Login/login?username=" + username +
  13.                 "&password=" + password,
  14.             hadleAs: "text"
  15.         });
  16.  
  17.         console.dir(response);
  18.     console.dir(response.results);
  19.     };
  20. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top