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 Like 42 Dislike
Previous forums Next forums
Other forums

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

Help: calling function
Hi,
Is it possible to call a php function on page close?
If yes, could you explain how and whe

Form File Upload
I've read through tons of resources and tutorials and as far as I can tell, my code is accurate, but

Registration
ok so i have a site where people can register and login which works now thanks to someone on here th

Ignore html and bbcode?
I've created a function to limit the amount of text according to the amount of words.

However

Loop column after 2 results
Hello All.

Here is what I have:

Client ID Company name Clien

problems with script
I made a small script wich exchanges points in my website:


<?php
session_start

Need help in Generating Combinations
Need help generating all possible combination of names in an array

Lets say i have the follow

Scene graph using Direct3D?
There are several C++ scene graph based packages available for OpenGl, like say OSG,

http://w

Grids not displaying decimals, and behaving differently on different PCs?
Hello,

I coded a relatively simple MII application that allows data from a form to be add

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash