Tuesday, December 1, 2015

Redirection problem while taking any site (solution works for me)

I have a problem with redirection,while taking any site fron my android phone browser or chrome browser on my pc a popup jumps up and asked to download an app or something.I am very much irritated with this problem and finally found a way to get rid of this problem

I am sharing the solution that works for me,please comment if its work for you.


Step-1

The problem is mainly from the modem,you need to type an address to get the setting of the modem from your browser.
Generally it will be 
http://192.168.1.1
may be you all have set with the default user name and password.
username:admin
password:admin


Step-2

In the setting there will be option to set the DNS or menu name like DNS SETUP,if you find you will able to see some numbers like 8.8.8.8,80.126.84.32 like that you need to clear it and set it to automatic mode and save(apply setting).

Step-3
This problem may come again,if you not changed you default user & password,so got to chage password option of you modem setting and change the password at once.


Step-4
Restart you modem and clear you browsing data and cookies from your browser and enjoy a problem free browsing.

I think this helps you.................




Wednesday, September 16, 2015

PHP Date and Time Format Validation (DD/MM/YYYY)(HH:MM)

function checkmydate($mydate)
{
$arr_date=explode("/",$mydate);
$day=$arr_date[0];
$month=$arr_date[1];
$year=$arr_date[2];
if(checkdate($month,$day,$year))
{
return true;
}
else
{
return false;
}
}
function checkmytime($mytime)
{
$arr_time=explode(":",$mytime);
if(count($arr_time)>0)
{
$hh_time=$arr_time[0];
$mm_time=$arr_time[1];

if(intval($hh_time)<24 && intval($mm_time)<60)
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}

Thursday, August 6, 2015

input type number remove arrow (spinner) using css

 input[type=number]{ -moz-appearance: textfield; }
  input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

You are able to specify for particular field using class

Format
input[type=number].classname{}

Monday, August 3, 2015

From Date and To date Validation Jquery date picker


$(function () {
    $("#txtFrom").datepicker({
        numberOfMonths: 2,
        onSelect: function (selected) {
            var dt = new Date(selected);
            dt.setDate(dt.getDate() + 1);
            $("#txtTo").datepicker("option", "minDate", dt);
        }
    });
    $("#txtTo").datepicker({
        numberOfMonths: 2,
        onSelect: function (selected) {
            var dt = new Date(selected);
            dt.setDate(dt.getDate() - 1);
            $("#txtFrom").datepicker("option", "maxDate", dt);
        }
    });
});

if you are using dd-mm-yy format use this code

                         sd=txt.split("-");
actdate=sd[1]+"/"+sd[0]+"/"+sd[2];
var dt = new Date(actdate);
           dt.setDate(dt.getDate() +5);
          var mydate=dt.getDate()+'-'+(dt.getMonth()+1)+'-'+dt.getFullYear();

Thursday, February 12, 2015

slideToggle slides down up and down again

On clicking button the div open then close by itself.

I faced similar problem,my error comes due to repeatation of code in other part of page.I think this may help you too solve problem