# DataTable Link # Data Table Options # Modify Data table data show option # Modify Datatable Page Show Value <script type=”text/javascript” src=”//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js“></script> <script type=”text/javascript”> …
Read MorePHP
On select redirect to selected option
## On Select Option Redirect to Another Page $(“#getcity_understate”).on(‘click’, function(){ var s = $(“#under_state_id”).val(); window.location.href = “manage_city_list.php?ustate_id=”+s; });
Read MoreHow to show location in Google maps
$location = “kolkata”; <div style=”width: 100%”> <iframe width=”100%” height=”480″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”https://maps.google.it/maps?q=<?php echo $location;?>&output=embed”></iframe> </div>
Read MoreHow to integrate google language translater in website
It is the link , from here we can create a plug-in for Google translater. https://translate.google.com/manager/website/ A small code will generate like: Script code will …
Read MoreScroll to top
## scroll to top:: <style type=”text/css”> #plz-ridemeto-top{position:fixed;bottom:20px;right:10px;cursor:pointer;display:none;} </style> <script> $(‘body’).append(‘<div id=”plz-ridemeto-top” class=”btn btn-info”><span class=”glyphicon glyphicon-chevron-up”></span></div>’); $(window).scroll(function () { if ($(this).scrollTop() != 0) { $(‘#plz-ridemeto-top’).fadeIn(); console.log(“scrolled”); …
Read MoreBeadcrum in php
## FOR DYNAMIC BREADCRUM:: filename = breadcrum.php; <?php class breadcrumb_class { var $breadcrumb = array(); function insertBreadcrumb($title,$path=”#”) { …
Read MoreHow to make dynamic breadcrum using segments
<?php // This function will take $_SERVER[‘REQUEST_URI’] and build a breadcrumb based on the user’s current path function getBreadcrumbs($separator = ‘ » ‘, $home = …
Read MoreForm validation using jQuery in php
## form validation in JQuery <script type=”text/javascript”> $(document).ready(function(){ $(‘#send_enquiry’).click(function(){ var get_validate = validateForm(); console.log(get_validate); if(get_validate>0){ return false; }else{ return …
Read MoreReset a form using jquery
## Reset a form using jQuery. <script> $(“#formid”).find(“input,textarea”).val(“”); </script>
Read MoreDownload a file in php
## Download file with a save option in php. $filename = “newfile.pdf”; $file_url = $filepath.$filename; //example: $file_url = ‘http://www.link.com/file.pdf’; header(‘Content-Type: application/octet-stream’); header(“Content-Transfer-Encoding: Binary”); header(“Content-disposition: attachment; …
Read More