இடுகைகள்

ஜனவரி, 2019 இலிருந்து இடுகைகளைக் காட்டுகிறது

how to stop browser back button using javascript/jquery? Tamil Programmers

படம்
#behindthecode SAMPLE 1 <script> $(document).ready(function() {         window.history.pushState(null, "", window.location.href);                 window.onpopstate = function() {             window.history.pushState(null, "", window.location.href);         }; }); </script> SAMPLE 2 <HTML> <HEAD> <SCRIPT type = "text/javascript" > window . history . forward (); function noBack () { window . history . forward (); } </SCRIPT> </HEAD> <BODY onload = " noBack (); " onpageshow = " if ( event . persisted ) noBack (); " onunload = "" > </BODY> </HTML> by Tamil Programmers

How to parse JSON data with jQuery / JavaScript? Tamil Programmers

படம்
#behindthecode STEP 1 <div id="id01"></div> STEP 2 <script> function myFunction(arr) {     var out = "";     var i;     for(i = 0; i<arr.length; i++) {         out += '<a href="' + arr[i].url + '">' +          arr[i].display + '</a><br>';     }     document.getElementById("id01" ).innerHTML = out; } </script> STEP 3 <script>   myFunction([ { "display": "HTML Tutorial", "url": "http://tamilprogrammers.blogspot.com" }, { "display": "CSS Tutorial", "url": "http://tamilprogrammers.blogspot.com" }, { "display": "JavaScript Tutorial", "url": " http://tamilprogrammers.blogspot.com " }, { "display": "SQL Tutorial", "url": " http://tamilprogrammers.blogspo...

Disable click outside of bootstrap modal area to close modal? Tamil Programmers

படம்
#behindthecode $(".modal").modal({         show: false,         backdrop: 'static' }); #Tamil Programmers

Backup MySQL database with CodeIgniter? Tamil Programmers

படம்
#behindthecode function backup()     {                 $this->load->dbutil();          $backup = $this->dbutil->backup();         $name   = date('d-M-Y').'- mariappan.gz';                 $this->load->helper('file');         $path = base_url().'backup/'.$name;         write_file($name, $backup);                 $this->load->helper('download' );         force_download($name, $backup);     } by Tamil Programmers

DATATABLE ANCHOR TAG CLICK AJAX ? Tamil Programmers

படம்
#behindthecode $('#table_name tbody').on( 'click', 'tr td a', function () { //HERE AJAX CODE }); by Tamil Programmers

AJAX error handling with jQuery ? Tamil Programmers

படம்
#behindthecode $ . ajax ({ url : 'test.html' , success : function ( response ) { $ ( '#post' ). html ( response . responseText ); }, error : function ( jqXHR , exception ) { var msg = '' ; if ( jqXHR . status === 0 ) { msg = 'Not connect.\n Verify Network.' ; } else if ( jqXHR . status == 404 ) { msg = 'Requested page not found. [404]' ; } else if ( jqXHR . status == 500 ) { msg = 'Internal Server Error [500].' ; } else if ( exception === 'parsererror' ) { msg = 'Requested JSON parse failed.' ; } else if ( exception === 'timeout' ) { msg = 'Time out error.' ; } else if ( exception === 'abort' ) { msg = 'Ajax request aborted.' ; } else { msg = 'Uncaug...