• JQuery realizes the effect demo of round robin


    In this paper, we share the specific code of jQuery to achieve the effect of the carousel map for your reference. The specific content is as follows Effect display: Programming ideas: 1. The first is the basic layout, which uses the page layout methods such as “son Jue Fu Xiang” to arrange the pictures, left […]

  • JQuery Ajax JSON data traversal code


    Let me first tell you my requirements: after Ajax request, the following JSON data will be sent back from the background. The specific implementation code is as follows: Javascript code { “data”:[ {“Id”: “1”, “name”: “select a”, “value”: “a”}, {“Id”: “2”, “name”: select b, value: “B”}, {“Id”: “3”, “name”: “select C”, “value”: “C”} ] } […]

  • Ajax realizes intelligent prompt search function


    1、 Renderings: 2、 Implementation process:  Ideas: 3、 Part code: html: <div> <div><input type=”text” /></div> <div><a href=”javascript:;”>Google</a></div> </div> <div></div> CSS code: * { padding:0px; margin:0px; } #searchbox { margin-top:10px; height:37px; width:550px; } #searchbox div { float:left; } #txtTitle { height:35px; width:440px; line-height:35px; border:solid 1px #4791FF; } #btnSelect a{ width:100px; height:37px; background:#167ED9; display:block; line-height:37px; color:#ffffff; text-align:center; } […]

  • Get rid of ashx and asmx use jQuery.ajaxWebService Request webmethod to simplify Ajax


    To develop Ajax programs under webform, you need to use general processing programs (*. Ashx) or web services (*. Asmx), and every Ajax request needs to build a file like this. So, if there are more Ajax programs in a project, it will inevitably produce a pile of. Ashx or. Asmx. Although the program itself […]

  • The method of uploading files by jQuery Ajax


    Two objects are used to upload files in jQuery Ajax mode First object: formdata Second object: XMLHttpRequest At present, the new version of Firefox and chrome and other browsers supporting HTML5 support these two objects perfectly, but IE9 does not support formdata objects, and still uses IE6? Can only sigh to the sky With these […]

  • Ajax asynchronous request refresh


    In the method of website refresh, AJAX refresh is a good refresh way of user experience, combining with SSH and other popular frameworks! Most commonly used! Here is a demo of a frequently used Ajax refresh form $(document).ready(function () { testchaxun(); setInterval(“testchaxun()”,5000); }); function testchaxun(){ /* var selectId = $(‘#proviace’).val(); */ $.ajax({ type : “POST”, […]

  • JQuery implementation of digital Huarong Road games (example code)


    <!DOCTYPE html> <html> <head><meta charset=”utf-8″> < title > Digital Huarong Road < / Title > <script type=”text/javascript” src=”jquery.min.js”></script> <style type=”text/css”> *{ padding: 0px; margin: 0px; } #btns>button{ width: 100px; height: 30px; border: none; background:#0082df; color:white; } #content{ text-align: center; margin: 0 auto; } #grid{ border: 1px solid #0082df; width: 300px; margin: 20px auto; height: 300px; […]

  • The implementation code of jQuery to determine whether the element exists and then load the content on demand


    In the process of front-end development, we will use a lot of jQuery plug-ins. More jQuery plug-ins will slow down the opening speed of web pages. The jQuery plug-in introduced is not required for every page. At this time, using the load on demand method to load jQuery plug-ins will help improve the performance of […]

  • JQuery realizes the accordion effect of King glory


    Effect Thought analysis: 1. There are two steps for mouse passing a small Li:2. The current width of small Li is 224px, and the small pictures inside fade out and the large pictures fade in3. The width of other brothers’ small Li becomes 69px, small pictures fade in, large pictures fade out Code implementation is […]

  • Example code of HTML + CSS + jQuery to realize left sliding and stretching navigation menu bar


    This paper introduces the example code of HTML + CSS + jQuery to realize the left sliding stretch navigation menu bar, which is shared to you as follows: PC terminal Mobile terminal Code <!DOCTYPE html> <html> <head> < title > left navigation < / Title > <meta charset=”utf-8″> <script src=”https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js”></script> <meta name=”viewport” content=”width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover”> <style> *{ […]

  • Jsp + jQuery using Ajax to call JSON


    The example of this paper describes the implementation of JSP + jQuery using Ajax to call JSON. To share with you for your reference, as follows: Reception: <script type=”text/javascript” src=”jquery-1.5.1.min.js”></script> <script type=”text/javascript”> //test function test(uid) { If (confirm (“confirm the user action” + uid + “? ()) { var date = new Date(); var param […]

  • Solution to the problem of no refresh when jQuery Ajax requests data many times


    When jQuery’s Ajax requests data frequently or repeatedly, there is a situation that non IE browser is normal, IE browser will set cache, which will not refresh the second request. The system reports 304 not modify, Solution: The Ajax method of jQuery provides the configuration parameter: cache (just set the property to false) Details: cache:Boolean […]