In the group last night, I saw someone asking me how to perform the login on the Big Brother 11. They felt amazing. I was very busy and didn't have time to help solve the problem. Some time ago, when I saw that the login on November 11 was really good, I thought it was using SSO. At that time, I asked him 11, but he said no. I felt that the login was successful, all the moss website developers needed it. At that time, I really didn't quite understand it. After a lot of effort and high-tech guidance (Huahua X and ppx help), I finally got it done, hope you don't understand it. It's actually very easy to see the demo below ..
This is the coreCodeClick the login code:
Function button1_onclick (){
VaR strname = Document. All ['strname']. value;
VaR strpwd = Document. All ['strpwd']. value;
VaR location = 'HTTP: // LH-vmpc: 4444/classes/lists/studentlist/newform. aspx '; // the page that must be verified in this region. The page is good and requires the permission to pop up the Login Dialog Box.
VaR auth = new activexobject ('msxml2. xmlhttp'); // create 'msxml2. xmlhttp' object
Auth. Open ('post', location, false, strname, strpwd );
Auth. Send ();
Switch (Auth. Status)
{Case 200: window. Location. href = 'HTTP: // LH-vmpc: 4444/home/default. aspx '; // login page
Break;
Case 401: Alert ('commandid or commandid secret ');
Break;
Default: Alert ('Sorry, please try again ');
}
}
Check whether it is very simple. The principle is that you need a verification page to verify it in advance, and then do not need to verify the pull when entering the page ..