Quantcast
Channel: FreelancerSpecialist
Browsing latest articles
Browse All 10 View Live

Layout is rendered twice

QUICK TIPS! In Phalcon MVC to avoid layout render twice make sure your naming is different, when common folder with all layouts is sharable, names of each layout should be different from module name or...

View Article



Facebook Dynamic share button url(data-href)

For JavaScript: <script language=”javascript”> function fbshareCurrentPage() {window.open(“https://www.facebook.com/sharer/sharer.php?u=”+escape(window.location.href)+”&t=”+document.title, ”,...

View Article

Jquery / Javascript confirmation dialog on href-link

Before submitting or do the action, you can prompt a confirmation by using this simple dialog box. <a href=”gotopage.php” class=”confirm”>Go To Page</a> <script...

View Article

Setting Session Only Cookie via JavaScript

So you’re pretty good at cookies in PHP, then you suddenly wanted to manage cookies via JavaScript. Few days ago, I got a chance to work on cookies and JavaScript but as usual, our beloved Internet...

View Article

set a cookie to expire in 1 hour in Javascript

Set cookie expiration var now = new Date(); var time = now.getTime(); time += 3600 * 1000; now.setTime(time); document.cookie = ‘username=’ + value +  ‘; expires=’ + now.toUTCString() +  ‘; path=/’;

View Article


WordPress auto Facebook Published Plugins

This plugin requires PHP version 5.4 or higher. If you face any difficulty installing or setting up this plugin then please make sure that the [...] The post WordPress auto Facebook Published Plugins...

View Article

What is Search Engine Optimization (SEO)

SEO is a marketing discipline focused on growing visibility in organic (non-paid) search engine results. SEO encompasses both the technical and creative elements required to [...] The post What is...

View Article

inArray – Checking if a value exists in array or not

The inArray function returns the index of the object supplied as the first argument to the function in the array supplied as the second argument [...] The post inArray – Checking if a value exists in...

View Article


jQuery – Javascript – Dates between two dates

Show all dates between two dates value. var day = 1000*60*60*24; date1 = new Date('2013-07-30'); date2 = new Date("2013-08-04"); var diff = (date2.getTime()- date1.getTime())/day; for(var...

View Article


getHours() 12-hour format

This Function will give the perfect time format in 1-12 hours   Javascript Function: function getClockTime(id){ var now = new Date(); var hour = now.getHours(); [...] The post getHours() 12-hour format...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images