Hi All
I was supposed to show the local system time for one of my JSPs with hour,Min and seconds put in 3 boxes.I used the Date object and extracted the Hours mins and sec from it and set it to my form hour min sec fields. This was done in a .js file as some 7 pages had the same requirement.
All of a sudden, the client came up and asked me to set it to a defaul value,12:00:00 Am and i changed the.js file,setting the form hours filed to 12,min to 00 and sec to 00. It works fine when i run it from my local server,but when i deploy it and run it on IE, the value for time appears as i had set it initially, ie the local system time and not the default 12:00:00 valu as i wanted.I cleared the cache and temporary internet files but its not working the way i want it to. Then i opened the same page in fire fox and it comes up properly ie 12:00:00.This means the code is propely deployed on the dev server but there's some problem with IE setting.
Code is as shown below.
I'd be happy if some one can throw some light.
Shane
document.forms[1].ClockHours.value="12";
document.forms[1].ClockMins.value="00";
document.forms[1].ClockSecs.value="00";