Tag: jquery
-
Auto save form using PHP, jQuery
This blog is regarding how to auto save form using PHP, jQuery. There are many tutorial available but it is very simple method. HTML Form : <form id=”auto-save-form”> Name : <input name=”name” type=”text” /> Email : <input name=”email” type=”text”> <input name=”submit” type=”submit”/> </form> JQuery Code: /*Form Auto Submit Logic*/ var changeFlag = false; var focusFlag…
-
printing webpage without opening new window using jQuery
Print is a create a big problem to mostly developers (I’m one of them). The problem like “print without opening new window”. Today, in this post I write a solutions of same problem. The solutions is : Use Jquery/Javascript with iframe elements. Small code for solution is below. var theUrl=”print.html”; $(“<iframe>”) // create a new…
-
Rotate Image using Jquery & PHP
Many Library available for rotating the image object. But, here we are rotating the image object using Jquery, Ajax and PHP. Here using PHP GD library for rotating the image object. There are many options to rotate the image object. But, here we using simple method. Note: In this example We used jpeg format Image.…
-
how to check browser window visibility using jquery
Whenever you switch the browser or tab then execute some events. Below is html & jquery code to check your browser window visibility Using this code : Check the title bar when you are switch the browser or tab. If title bar display “Active” it means you are on current tab or browser If title…
-
how to get multiple select values in javascript
//Here client is id of multiple dropdown…. <select multiple=”multiple” id=”client” > <option value=’1′>1</option> <option value=’2′>2</option> <option value=’3′>3</option> </select> <input type=’button’ value=’Test’ onclick=’tes()’> <script type=’text/javascript’> function tes() { var cnt=document.getElementById(‘client’).length; var arr=new Array(); var j=0; for(var i=0;i<cnt;i++) { if(document.getElementById(“client”).options[i].selected == true) { …
-
how to refresh particular div tag content without reloading page using jquery?
// Note : First include jquery.js file….. <script type=”text/javascript”> var auto_refresh = setInterval( function () { $(‘#load_div’).load(‘load.php’).fadeIn(“slow”); }, 100000); // refresh every 10000 milliseconds </script> //index.php <div id=”load_div”> </div> //load.php In this page you can write your code. like load randam user,image etc….
