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?
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
Populate drop down list from table??
Lets say for arguments sake that i have a table which contains the numbers 1 to 10.
How can i get
help me fix these syntax errors...
I keep getting multiple syntax errors on this script like this one:
Parse error: syntax error
'210010106140040100' == '210010106140040101'
Debugging this simple line of a PHP script
Code: if($a == $b){ }
I've found that with val
I need help on this PHP code
Hi everybody, I made some kind of mistake while editing the code below. As you see, at the 3 row my
Getting PHP to ammended the selected in option field
Hey Guys
thanks for everyones help so far. This site and its users are oozing awesomness.
PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em
Facebook status update API
Hello,
So, I'm trying to create my first Facebook application with PHP.
Basic ideas fo
Need help making a script that moves data into acrhive table
Hi,
I'm kinda new to php/mysql
And i wrote a simple script to store sales lead for a b
Escape Latin Characters
I need to escape latin characters in an xml doc. Example: "é" is escaped to "é". I thoug
mysqli_fetch_assoc returns multiple arrays, how to return a single array
Hello, I am using mysqli_fetch_assoc which is returning multiple rows, so it looks like:
Code