dhavalp

Gloabal ajax request loader functionality

We can use defaul jQuery-ajax method for display ajax loader on multiple ajax request by using below formula. var activeAjaxCount = 0; $( document ).ajaxStart(function() { activeAjaxCount++; $(‘#msg_writter’).show(); }); $( document ).ajaxComplete(function() { activeAjaxCount–; if (activeAjaxCount == 0) { $(‘#msg_writter’).hide(); } });Read more …
keithg

Slider load in bootstrap tabbing

make sure file exist : <link rel=”stylesheet” href=”//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css”> <link rel=”stylesheet” href=”http://bxslider.com/lib/jquery.bxslider.css” type=”text/css” /> <script src=”//code.jquery.com/jquery-1.10.2.js”></script> <script src=”//code.jquery.com/ui/1.11.0/jquery-ui.js”></script> <script src=”http://bxslider.com/lib/jquery.bxslider.js”></script> script for load slider ADD IN ONLOAD $(function() { var slider2_initialized = false; var slider3_initialized = false; $( “#tabs” ).tabs({ activate: function( event, ui ) { //console.log(“ui = “);console.log(ui); var tab_id...Read more …
Ajit N

Counts all the values of an array

array_count_values() returns an array using the values of array as keys and their frequency in array as values. [crayon-5973eec9b3a72012748759/] For counting the values with case-insensitive matching [crayon-5973eec9b3a79097279423/] This prints: [crayon-5973eec9b3a7c841295244/]  Read more …