How to call ajax request one after another in php

<script> $(document).ready(function() { $(document).on(“click”, “._SP12_SHOWMORE”, function()    {         var datastring = {‘SRCON’:SMJX_ON, ‘LCNT’:SMJX_LST_CNT,}; // FIRST AJAX REQUEST::        $.ajax({          url:'<?php echo base_url().”search-rd”;?>’,          type: ‘POST’,          data: datastring,          success:function(rtb) {            // SECOND AJAX REQUEST:: $.ajax({            url:'<?php echo base_url().”search-st”;?>’,      type: ‘POST’,             data: datastring,          success:function(rta) {     // WRITE YOUR CODE … Read moreHow to call ajax request one after another in php

How to check if the request is an AJAX request with PHP

if (!empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’ ) { // This is ajax request. // write your code here. }

pagination with scroll using ajax

HTML PAGE IS HERE: IN CODEIGNITER:: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>Show More Testing</title> <style type=”text/css”> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: 40px; font: 13px/20px normal Helvetica, Arial, sans-serif; color: #4F5155; } a { color: #003399; … Read morepagination with scroll using ajax

Disable ctrl+c,ctrl+u and right click

Disable in the whole document from copy,ctrl+u and right click. <!– Disable ctrl+u & ctrl+c and prevent Right Click –> <script  type=”text/javascript” src=””></script> <script type=”text/javascript”> $(document).ready(function() { $(document).bind(“contextmenu”,function(e) { return false; }); }); </script> <script type=”text/javascript”> var isCtrl = false; document.onkeyup=function(e) { if(e.which == 17) isCtrl=false; } document.onkeydown=function(e) { if(e.which == 17) isCtrl=true; if((e.which == … Read moreDisable ctrl+c,ctrl+u and right click

How to avoid conflicts of jquery library

Use This Code To Avoid Conflicts Of Jquery Library Files.. $.noConflict(); As Example: var jq = $.noConflict(); jq(document).ready(function(){     jq(“button”).click(function(){         jq(“p”).text(“jQuery is still working!”);     }); });