Tag:Input box

  • Implementation of textbox place holder prompt in Windows Form


    In WinForm program, there are many ways to implement textbox text input box placeholder, the most common way is to send EM based on Windows API SendMessage function_ Setceebanner message, or through the focus event of textbox. Implementation of SendMessage function Create a zhmtextbox input box control that inherits textbox, add a placeholder property, and […]

  • [tutorial] Pastate.js Responsive react framework (4) form rendering and operation


    This isPastate.jsChapter 4 of the series of responsive react state management framework tutorials. Welcome to pay attention and keep updating.Pastate.js Github In this chapter, let’s look at how to render and manipulate form elements in pastate. Using native form elements We are hereBasicInfoViewUnder the two buttons of the component, an input box is added to […]

  • Jsp + Ajax input box to achieve automatic completion function example code


    The following is my Ajax input box to achieve automatic completion function, database data is very little, roughly imitate the baidu home page prompt function, of course, other people Baidu things are not so simple! First look at the operation effect: index.jsp (including the main JS code) Copy codeThe code is as follows: <%@ page […]

  • JavaScript serialization 36 – upload files and get input form focus


    1、 Form label focus window.onload = function (ev) { var input = document.getElementsByTagName(“input”)[0]; //1. Get the focus, that is, press the cursor of the mouse input.onfocus = function (ev1) { //This is a pointer to a variable this.style.width = ‘600px’; this.style.height = ’40px’; this.style.outline = ‘none’; this.style.fontSize = ’20px’; } //2. Lose focus input.onblur = […]

  • ER model to word


    ER model to word People who are engaged in software development know that in the process of doing projects, they are often asked by customers to provide database design documents. Manual sorting is time-consuming and brain consuming, and writing errors are easy to occur Enter(https://www.freedgo.com/erd.html)Online freedgo online drawing ER model to word database design document […]

  • User input of angular2 Foundation


    For a better reading experience, poke hereHacking with Angular In this article, we will explain how to deal with the user‘s operation, the most common is click and input; this article focuses on the user’s click and input processing Our initial project is still based on ourQuickStartBased on the small project, and then on that […]

  • Flutter (7): the basic widget of flutter


    Flutter’s basic widget Preface 1: I will update some flutter text tutorials in the next period of time Update progress:At least two articles a week; Update location:The first time is in the official account, and the second day is updated in nuggets, thinking and developers’ headlines. More communication:You can add my wechat 372623326 and follow […]

  • How to apply for free SSL certificate


    This note is used to record how to apply for a free SSL certificate. The validity period of the certificate applied through the method described in this article is only 30 daysthree months, please choose carefully. get ready There are many websites like this that provide free SSL certificate. The platform I choose here isFreeSSL.cn […]

  • It’s time to start a Vue component library of your own!!!


    Doran-ui Based on Vue (2. X) a set of background UI framework, UI design is based on the UI design of element and iView At present, there are all kinds of excellent Vue component libraries in the market. Have you ever thought about how to realize the bottom layer? For a mature component library, it […]

  • Globalvim – use VIM in all your editors


    More computer skills can be found athttps://xiaoheidiannao.comCheck it out! VimIt’s a text editing tool on Linux. I’m used to itVimI’m sure you want to use it on windows, tooVimAt least I think so. Although there are Windows versionsVim, but inWord、NotepadBut it can’t be used. After some efforts, I finally found a powerful tool globalvim, which […]

  • The bus route of Gaode map API


    Introduction of plug-ins AMap.Transfer map <span style=”background-color: #f5f5f5; color: #800000;”> *</span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”>margin</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”>0</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span><span style=”background-color: #f5f5f5; color: #ff0000;”>padding</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”>0</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span><span style=”background-color: #f5f5f5; color: #ff0000;”>list-style</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span […]

  • JS form verification (1): domain name verification instruction


    Implementation of angularjs app.directive(‘checkDomainCommon’, function () { return { restrict: ‘A’, require: ‘ngModel’, link(scope, ele, attrs, ctrl) { ctrl.$validators.checkDomainCommon = function (modelVal) { //Reg is the regularization of the domain name let reg =/^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][–a-zA-Z0-9]{0,62})+\.?/ if (attrs[‘required’] === undefined || attrs[‘required’] === false) { return true } else if(!modelVal){ return false; }else { //Add input type […]