Scroll to top

Blogs

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to get warning when exit browser without saving?

Get warning when exit browser without saving <script> jQuery(document).ready(function($){ $(window).unbind(‘beforeunload’); $(“input[type=’submit’]”).click(function(){      $(window).unbind(‘beforeunload’); }); $(“input”).on(“change paste keyup”, function() {   $(window).bind(‘beforeunload’, function(){ return ‘Are you sure you want to

Read More »

How to use properly search ajax in wordpress?

use properly search ajax in wordpress Use in html file  <html><head> <style>.sec {    width: 223px;    height: 41px;    border: 1px solid #54595f; margin-bottom:4px;}</style><script src=”<?php echo plugin_dir_url(__FILE__);?>js/jquery.min.js” type=”text/javascript”></script><script>jQuery(document).ready(function($){ $(“.filter”).bind(“keyup

Read More »

How to create logout page with session in wordpress?

Create logout page with session in wordpress <?php session_start(); session_destroy(); session_unset(); //echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’”;</script>’; if(!isset($_SESSION[‘ID’])){  echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-form”;</script>’; } ?> <script>     location.reload(); </script>

Read More »