Advertisement
Advertisement
| 04.17.2008 at 12:59PM PDT, ID: 23332349 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: |
function checkfortest(){
var timeoutval;
var k;
var totalelements;
var numelementsper;
var results=new Array();
results[1]="4/16/2008 3:36:18 PM";
results[2]="FL Volume I Fundamentals";
totalelements=1;
numelementsper=2;
var timeoutval;
var k;
if ((cintjis(totalelements)*cintjis(numelementsper)) > 0){
timeoutval="480";
k=results[1];
if (!(numericjis(timeoutval))){
timeoutval=10;
}else{
timeoutval=cdbljis(timeoutval);
}
if(k==""){
document.all.bigtable.style.display="";
}else{
var testDate = new Date();
alert(testDate);
alert(k);
var resumeDate = new Date(k);
alert (resumeDate);
var diff=(testDate-resumeDate)/(60*60*60);
alert(diff);
if(diff<timeoutval){
document.all.resumetable.style.display="";
}else{
document.all.bigtable.style.display="";
}
}
}else{
document.all.bigtable.style.display="";
}
}
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 04.17.2008 at 01:10PM PDT, ID: 21380852 |
| 04.19.2008 at 11:03AM PDT, ID: 21393362 |
| 04.22.2008 at 06:50PM PDT, ID: 21417180 |
| 04.24.2008 at 08:42PM PDT, ID: 21436924 |
| 05.07.2008 at 05:01PM PDT, ID: 21521363 |
| 05.08.2008 at 06:59AM PDT, ID: 21524725 |
| 07.08.2008 at 10:26AM PDT, ID: 21956018 |
Your Mac uses a different time format which causes it to fail. To be standard, I think you should use one of these formats.
new Date("Month dd, yyyy hh:mm:ss")
new Date("Month dd, yyyy")
new Date(yy,mm,dd,hh,mm,ss)
new Date(yy,mm,dd)
new Date(milliseconds)
My personal preference goes to the third and fourth, because they are independent of client-computer's software.
HTH,
John