July 28, 2015

How to open a browse any file dialog when click on link using javascript?

- Is there any way to open browse file window open when I click on any <a href> link? Please help me for that I have issue in a site and I want some help!

July 18, 2015

How to change date format (MM/DD/YY) to (YYYY-MM-DD) in date picker?

Use the dateFormat function for that:

Example:
$(function(){
$("#to").datepicker({ dateFormat: 'yy-mm-dd' });
$("#from").datepicker({ dateFormat: 'yy-mm-dd' }).bind("change",function(){
var minValue = $(this).val();
minValue = $.datepicker.parseDate("yy-mm-dd", minValue);
minValue.setDate(minValue.getDate()+1);
$("#to").datepicker( "option", "minDate", minValue );
})
});


Demo : http://jsfiddle.net/gaby/WArtA/

Enjoy!

PHP- full calendar how to remove extra slots when week view?


Please do following change in .js file where calendar function call like: calendar.js file:

$('#calendar').fullCalendar({ //re-initialize the calendar
header: h,
        slotMinutes: 30,
});


Enjoy!

jQuery how to append data-tip value when mouse hover?


If you want to set the data attribute with .attr() on mouse hover:

Example
jQuery('li#menu-item-75 a').attr('data-tooltip', 'value');

Demo: http://jsfiddle.net/fkdh8/13/

Enjoy!

July 12, 2015

jQuery ui datepicker set default calendar is a last month

Yes, it's possible using faultDate function:

<?php
$('#selectdate').datepicker({
    defaultDate: '-1m' //Here you can define how many month(s) you want less from current month.
});
?>

Enjoy!

July 8, 2015

PHP - Fedex web service Error:The transaction returned an Error.


Using FedEx web service in PHP. I have developer account in FedEx. It's return following problem of authentication.


Severity: ERROR
Source: prof
Code: 1000
Message: Authentication Failed

Please help to finde out perfect solution.

Thanks in Advance

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...