js event listening (compatibility considered)

explain: Internet The addEventListener() method is not supported in Explorer 8 and earlier IE versions, and is not supported in Opera 7 and earlier Opera versions. However, for browsers that do not support this function, you can use the attachEvent() method to add event handles. Internet Explorer 8 and earlier does not support the remo ...

Posted by cliftonbazaar on Sat, 02 May 2020 21:41:11 -0700

Native javascript prevents trigger of jquery from triggering mouse events

In the process of the project, the user will trigger an event. It is necessary to trigger the corresponding event for another element and then execute the corresponding code. In jquery, it can be implemented through trigger trigger API Today, I thought about how to implement js without jq? Recently, I read the book "javascript advance ...

Posted by Sj0wKOoMel on Sat, 02 May 2020 20:48:35 -0700

JavaScript: snow effect

Before I start typing, I need to figure out a few questions: 1. The way snow flakes exist, I use < div > A kind of < / div > to represent a snowflake; 2. The size of snow flakes should be in a range and random; 3. The transparency of snow flakes should also be changed. The color of newly emerged snow flakes will surely be darker ...

Posted by brokencode on Fri, 01 May 2020 23:25:32 -0700

[plug in] jquery.circular ---- circular statistical chart

Ring chart effect: The left statistical chart data is bound to the attendance rate of the right personnel. When the attendance rate of several personnel changes, the statistical chart is updated. Introduce js and set css: <script src="scripts/jquery/jquery.circliful.min.js"></script> /*Ring chart style start*/ .circli ...

Posted by boneXXX on Fri, 01 May 2020 22:09:04 -0700

Recommend Huploadify to upload pictures or files

In the previous project, uploadify(flash version) was used to realize the image upload function. The upload plug-in browser that relies on flash is not compatible enough, so Huploadify was used to replace uploadify for the following reasons: 1. Does not depend on flash. 2. The library file size is one third of uploadify. 3. Browser c ...

Posted by dr.wong on Fri, 01 May 2020 15:17:11 -0700

jquery.uploadify.3.2.1 trial in IE9,IE10 upload file button will not be able to click

I used to use version 2.1.4. After seeing the update, I tried it and found that there were many changes. First, introduce js and css <link rel="stylesheet" href="uploadify.css" />    <script src="jquery.uploadify.js"></script>   Of course, jquery is essential Next is the code: //File upload   ...

Posted by jdimino on Fri, 01 May 2020 05:46:54 -0700

Example used by JSONP and artTemplate template template engine -- request weather data

Example used by JSONP and artTemplate template template engine - Request weather data The first two articles briefly summarize The principle of cross domain request in jsonp , and The use of artTemplate template engine . So make a simple example of requesting weather. I don't know why. Yesterday's request for Baidu ...

Posted by praxiz on Fri, 01 May 2020 00:19:29 -0700

Bootstrappvalidator custom form validation

Bootstrappvalidator custom form validation Bootstrappvalidator custom form validation Foreground verification updateMessage Background interactive server verification Foreground verification /** * callback **/ inadvanceAmount: { validators: { notEmpty: {message: 'Appointment ...

Posted by sades on Thu, 30 Apr 2020 18:57:37 -0700

JQuery calls Ajax to asynchronously transfer the type of response data received by Servlet

When we use ajax encapsulated by jQuery in the web Callbacks can be executed But this callback function accepts fixed data types In the servlet background Well known transmission types are text json Of course, this is transmitted to jQuery If jsp is used That's another thing So far, I haven't specifically test ...

Posted by chrisredding on Thu, 30 Apr 2020 18:17:14 -0700

Basic use of AMD - requireJS in JavaScript modular programming

AMD of JavaScript modular programming requireJS basic use Tags (space delimited): JavaScript Reference article AMD specification AMD is the abbreviation of "Asynchronous Module Definition", which means "Asynchronous Module Definition". It loads the module asynchronously, and the loading of the module does not affect the ru ...

Posted by nlhowell on Thu, 30 Apr 2020 07:59:20 -0700