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
Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past
I need an iframe that calls up a different page according to the date
hi
I don't know any php (only html) and I urgently need to do the following:
I need a
How to show a complete textarea ??
I enter Client Case Notes notes in a textarea field on a PHP form. The field is 5 rows deep and 70 c
iMatch stored value with the current value in a loop
Hello,
I have a MySQL db were I store articles in.
I have a form to fill these article
What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin
Mysql error message
help me find out what this error message means:
"Duplicate entry '0' for key 'PRIMARY'&q
How to login with SAPCPIC userid
I have changed the Password for SAPCPIC in Development Server for 000,001 and 100 client.
But w
Email "$"
Hello!!
Any PHP guy with a bit of a knowledge in Flash ?
When I send a JPEG from flash
Need help with unexpected T-STRING error
I'm a newbie and I'm still learning PHP. However this error has me stumped. I've googled, searched t
help me, how to find text on an external html site using PHP
Would anyone know how to search an external html file for a work or phrase ?
I was thinking s