Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,339 members, 7,957,905 topics. Date: Wednesday, 25 September 2024 at 12:17 AM |
Nairaland Forum / Science/Technology / Programming / Jquery Timeago Plugin Implementation Using PHP. (1035 Views)
Free HTML5, CSS3 And Basic Javascript (jquery) Training / Free Online Training For Html/css, Javascript, Jquery, Mysql, Php, Java, Android / Extract URL Data Like Facebook Using PHP, Jquery And Ajax (2) (3) (4)
Jquery Timeago Plugin Implementation Using PHP. by skptricks: 9:46am On Nov 26, 2017 |
Post link : http://www.skptricks.com/2017/11/timeago-jquery-script-using-php.html Timeago is a JQuery plugin that provides a easy way to integrate timestamp update functionality in web based application. Nowadays Timeago Plugin is the most important functionality in social networking sites, it helps to update the timestamps automatically at specific interval of time. In this post we will going to learn how to integrate and timeago Jquery plugin in web application with the help of PHP. Why Timeago plugin ? It's support the page caching in your web applications. Automatically refresh the page and update the timestamp in web application. Support the HTML5 tags. Easy to integrate in web applications. Lets see the below example for Timeago : index.php <html> <head> <script src="jquery-3.2.1.min.js" type="text/javascript"></script> <script src="jquery.timeago.js" type="text/javascript"></script> <script> jQuery(document).ready(function() { jQuery(".timeago".timeago(); }); </script> </head> <body> <?php $time=time(); // Current timestamp eg: 1371612613 $formatedTime=date("c", $time); // Converts to date formate 2017-06-19T03:30:13+00:00 ?> <h1> You opened this page <a href='#' class='timeago' title="<?php echo $formatedTime; ?>"></a> </h1> <h1> This page was last modified <a href='#' class='timeago' title="2017-07-17T14:06:04Z"></a> </h1> NOTE : This will update every minute. Wait for it. </body> </html>
|
Re: Jquery Timeago Plugin Implementation Using PHP. by badmus306(m): 10:55am On Nov 26, 2017 |
Do u have an idea of a plugin that disable past date on a datePicker, but only shows the current days or days to come 1 Like |
Re: Jquery Timeago Plugin Implementation Using PHP. by skptricks: 5:58am On Nov 27, 2017 |
badmus306: Yes.... var array = ["2017-11-14","2017-03-15","2017-03-16"] $('input').datepicker({ beforeShowDay: function(date){ var string = jQuery.datepicker.formatDate('yy-mm-dd', date); return [ array.indexOf(string) == -1 ] } }); |
Re: Jquery Timeago Plugin Implementation Using PHP. by bassdow: 3:32pm On Nov 27, 2017 |
badmus306: Kai but you don't need a plugin for this na. haba installing plugin for something like this would be termed as Plugin Abuse. A couple of minutes should solve it. expo : try min and max or anything similar though |
Re: Jquery Timeago Plugin Implementation Using PHP. by badmus306(m): 4:58pm On Nov 27, 2017 |
bassdow:Thank you bro |
(1) (Reply)
Mlm Website Needed, Get In Now If You Can Give Me One / Google Rewards Teenager $36,000 For Finding Security Loop In Their System / QServers.net is About To Scam Me, Please Help
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12 |