Tag:Verification

  • Does Ajax user name authentication exist

    Time:2022-3-17

    The client collects form information.Use the XMLHttpRequest object to submit to the server.The server completes the verification logic and returns the result information.The browser makes certain prompts to the user according to the information returned by the server.However, because my space does not support any server segment language, I moved the logic that should have […]

  • How to pass W3C verification?

    Time:2022-2-23

    In addition to formulating various labeling regulations, the W3C also provides verification functions to allow web page producers to check whether they really comply with W3C regulations.prefaceIn addition to formulating various labeling regulations, W3C also provides verification function to let Web page producers check whether they really comply with W3C regulationsHow to achieve W3C xhtml1 […]

  • Menu explanation of IE8 developer tools

    Time:2022-1-30

    This article has simply explained the menus of developer tools. I believe that you can simply use this powerful tool. IE8 “developer tools” (detailed explanation of menus at all levels)The official version of IE8 has been released. This article will not make any evaluation very bullshit, and then give such fucking conclusions as “Chrome’s ability […]

  • Shell regular expression validation IP address

    Time:2022-1-27

    Multiple local IP addresses Copy codeThe code is as follows: ifconfig | awk ‘/inet/{print $2}’ | awk -F: ‘{print $2}’  First, use this first Copy codeThe code is as follows: CheckIPAddress()        {         echo $1 > /tmp/tmpserverip         echo $1 |grep “^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$” > /dev/null         if [ $? = 1 ];    then                 return 1 […]

  • Details of using forms validation in. Net MVC

    Time:2021-9-20

    . net MVC uses forms verification for your reference. The details are as follows This is how the folder is divided First set in web.config Authentication and authorization nodes <system.web> <authentication mode=”Forms”> <forms loginUrl=”~/Login/Index” timeout=”2880″ defaultUrl=”~/Home/Index”/> </authentication> <anonymousIdentification enabled=”true”/> <authorization> <deny users=”?”/> <!– Deny anonymous access — > </authorization> <compilation debug=”true” targetFramework=”4.5″ /> <httpRuntime targetFramework=”4.5″ […]

  • JSP radio button verification, drop-down box verification, check box verification implementation code

    Time:2021-8-31

    //Verify gender (radio button verification)function checkXb(){ var temp = false; var xbObj1= document.getElementById(“xb1”); var xbObj2= document.getElementById(“xb2”); if(xbObj1.checked || xbObj2.checked){ temp = true; } return temp; } function checkform() { //Verify gender (radio button verification)if(!checkXb()){ Alert (“please select gender”);return false; } //Verifier category (drop-down box)if(document.getElementById(“lb”).selectedIndex == 0){ Alert (“please select a personnel category”);return false; } } […]

  • Java regular expression validation function

    Time:2021-8-28

    Copy codeThe code is as follows: /** *Validate regular expressions* *@ author Zhujie regex string to which the regular expression value belongs* @return boolean */ public static boolean regex(String regex, String value) { Pattern p = Pattern.compile(regex); Matcher m = p.matcher(value); return m.find(); }

  • JAVA 18 Bit ID number verification algorithm

    Time:2021-8-22

    public static char doVerify(String id) { char pszSrc[]=id.toCharArray(); int iS = 0; int iW[]={7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2}; char szVerCode[] = new char[]{‘1′,’0’, ‘X’, ‘9’, ‘8’, ‘7’, ‘6’, ‘5’, ‘4’, ‘3’, ‘2’}; int i; for(i=0;i<17;i++) { iS += (int)(pszSrc[i]-‘0’) * iW[i]; } int […]

  • Ajax implementation of asynchronous transmission and verification example code

    Time:2021-7-8

    Ajax asynchronous transmission is widely used. Take web development as an example. When a user registers, when the user has just finished typing, how to immediately determine whether the user exists and display a prompt in the input box? This uses asynchronous transmission~~ It allows you to get the data you want in the background […]

  • HTML5 client to verify the size of the upload file (simple example)

    Time:2021-6-22

    In HTML 5, it is now possible to verify the file upload on the client. For example, after the user selects the file, the size and attributes of the file can be verified immediately. This article introduces how to verify the size of the uploaded file by HTML5 client. Interested code farmers can refer to […]