Data Function is Its Not working IN IE8
Posted on
16th Feb 2014 07:03 pm by
admin
This is my first time to use formums. I hope i can get solution for this problem.
view plaincopy to clipboardprint?
function Clientcalculateage() { var varClientDOB = new Date(document.getElementById("txtClientDOB").value); var dobYear = varClientDOB.getFullYear(); var dobMonth = varClientDOB.getMonth(); var dobday = varClientDOB.getDay(); if (!isNaN(dobYear) && !isNaN(dobMonth) && !isNaN(dobday)) { var age = displayage(dobYear, dobMonth, dobday, "years", 0, "rounddown"); if (Number(age) < 2) { age = displayage(dobYear, dobMonth, dobday, "months", 0, "rounddown"); document.getElementById("txtClientAge").value = age; } else { document.getElementById("txtClientAge").value = age; } } else { alert("please enter a numeric value"); document.getElementById("txtClientAge").value = "DD/MMM/YYYY" document.getElementById("txtClientAge").focus(); } } function Clientcalculateage()
{
var varClientDOB = new Date(document.getElementById("txtClientDOB").value);
var dobYear = varClientDOB.getFullYear();
var dobMonth = varClientDOB.getMonth();
var dobday = varClientDOB.getDay();
if (!isNaN(dobYear) && !isNaN(dobMonth) && !isNaN(dobday))
{
var age = displayage(dobYear, dobMonth, dobday, "years", 0, "rounddown");
if (Number(age) < 2)
{
age = displayage(dobYear, dobMonth, dobday, "months", 0, "rounddown");
document.getElementById("txtClientAge").value = age;
}
else
{
document.getElementById("txtClientAge").value = age;
}
}
else
{
alert("please enter a numeric value");
document.getElementById("txtClientAge").value = "DD/MMM/YYYY"
document.getElementById("txtClientAge").focus();
}
}view plaincopy to clipboardprint?
Did you know?Explore Trending and Topic pages for more stories like this.
This is my Javascript Function I call this function in Onchage Event.
When I change the date in CalenderExtender Control. Its working fine in FireFox Browser. but Its not working in IE8.
I don't know y? i try my solution but its not workin. finally i come to forums. Any one plz help me
No comments posted yet
Your Answer:
Login to answer
309
42
Other forums
IF Statement & Two Tables With Different Echoes
I'm retrieving two tables in a single query using UNION ALL, like so:
Code: $query = "SE
PHP/PKI
I am trying to set up a web application that uses pki. does anyone have a good tutorial to set this
Undefined Variable: PHP_SELF, pls help
Hi,
Im a newbie on PHP / MySQL programming and Im running a script to search one field on my
remove a ; from emails in textarea
Code: <?php
session_start();
$database_host = "localhost&qu
Error when call dll from oracle
Hi all, please help me!
I have dll write C language, I want call it from oracle procedur
How would I convert this into code using an if statement?
ES equals exam score m equals $mean s equals $total. I already coded my mean and total so I'm not g
Help with captcha script needed
Hello,
I am working on a script where reCAPTCHA or a similar form of CAPTCHA will be used, f
Problem with HTML form
Hello,
I made a HTML form with some fields and check box.
Everything works fine except whe
asking for direction
I have 2 tables in my data, which are "post" and "event"
I won't make a summa
unexpected T_STRING
error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error