Do feel free to ask any questions that you may have concerns to web. No Compromise on Learning!
Tuesday, April 2, 2013
Friday, February 15, 2013
Jquery simple seconds timer
<script>
var counter = 10;
setInterval(function() {
counter--;
document.getElementById("count").innerHTML = 'The page will be refresh after '+counter;
if(counter == 0)
{
counter=10;
}
}, 1000);
</script>
<div id="count"></div>
How to refresh DIV using jquery
There are very simple steps to achieve this:
Step 1:
Copy the following code and paste it in the head section of your webpage.
Copy the following code and paste it in the head section of your webpage.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script> <script> var auto_refresh = setInterval( function() { $('#loaddiv').fadeOut('slow').load('reload.php').fadeIn("slow"); }, 20000); </script> |
Here, above the file “reload.php” will be reloaded in every 20000ms i.e 20 second . You can change the file which you have to reload and you can also change the reload time as per your requirement.
and secondly, the #loaddiv is the name of DIV which is going to be refreshed.
and secondly, the #loaddiv is the name of DIV which is going to be refreshed.
Step 2:
and now you need to put the div in the body section of your page
and now you need to put the div in the body section of your page
<div id="loaddiv"> </div> |
Step 3:
Now finally you need to write the code for the file “reload.php” which will extract the contends from the other page or it also may contain the code to read the data from the database depending upon requirement.
here i am going to read a small content from another site. you can copy , paste the code and save it as the filename “reload.php”. in the same folder that contains the source code.
Now finally you need to write the code for the file “reload.php” which will extract the contends from the other page or it also may contain the code to read the data from the database depending upon requirement.
here i am going to read a small content from another site. you can copy , paste the code and save it as the filename “reload.php”. in the same folder that contains the source code.
echo"<img src='http://www.76miles.com/'/>"; |
Now your page is ready .
Click here to see the demo.
This post is taken from this Articale: http://designgala.com/how-to-refresh-div-using-jquery/
Thursday, February 7, 2013
Wednesday, January 30, 2013
jQuery File Upload Demo
File Upload widget with multiple file selection, drag&drop support, progress bars and preview images for jQuery.
Supports cross-domain, chunked and resumable file uploads and client-side image resizing.
Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.
Just click on below link
http://blueimp.github.com/jQuery-File-Upload/
Supports cross-domain, chunked and resumable file uploads and client-side image resizing.
Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.
Just click on below link
http://blueimp.github.com/jQuery-File-Upload/
Monday, January 21, 2013
PHP Converting string to Date
$dob1=trim($_POST['txt_dob']);//$dob1='dd/mm/yyyy' formatlist($d, $m, $y) = explode('/', $dob1);$mk=mktime(0, 0, 0, $m, $d, $y);$dob_disp1=strftime('%Y-%m-%d',$mk);
if you can convert string date to date formate direct using strtotime() function this not give valid date
i have all ready faced this problem
i hope this code will helpfull to you... :)
Thursday, December 27, 2012
Fix “The program can’t start because MSVCR100.dll is missing from your computer.” error on Windows
What hides behind this name is the Microsoft Visual C++ Redistributable which can easily be downloaded on the Microsoft website as x86 or x64 edition:
Usually the application that misses the dll indicates what version you need – if one does not work, simply install the other.
Subscribe to:
Posts (Atom)
How to change the PHP version for subfolders or subdomains
How to change the PHP version for subfolders or subdomains Setting a specific PHP version for a specific websites, subfolders or subdomain...
-
What is PHPSpreadSheet Library PHPSpreadSheet library is purely writter in PHP and it main purpose of communicate your PHP application with ...
-
cURL is software which you can use to make various requests using different protocols. PHP has the option to use cURL and in this article, w...
-
I would make a function that checks every selected value, and then enables all option s, searches through the .staff_list s for option s ...
