I am getting an error in Internet Explorer and don't understand what is wrong. Here is the error details that come up on IE:
Line : 203
Char 1
Error : Object Expected
Code :0
URL : <!-- m --><a class="postlink" href="http://tresdev/repvacation.asp?suitsid=WS5926&parent=USER&access=0">http://tresdev/repvacation.asp?suitsid= ... R&access=0</a><!-- m -->
Here is the lines of code that it is referencing:
199 : // Check that month is between 1 &12.
200 : if(month<=0 || month>=13) { err=true;}
201 : // Check that day is right depending on month.
202 : if( month==2 && ((year/4)==parseInt(year/4)) ) { if(day<=0 || day>29) {err=true; }}
203 : if( month==2 && ((year/4)!=parseInt(year/4)) ) { if(day<=0 || day>28) {err=true; }}
204 : if( month==4 || month==6 || month==9 || month==11 ) { if(day<=0 || day>30) {err=true; }}
205 : if( month==1 || month==3 || month==5 || month==7 || month==8 || month==10 || month==12 ) { if(day<=0 || 206 : day>31) {err=true; } }
207 : // Check that year is OK
208 : //if(year<=0 || year>99) {err=true;}
209 : // If anything appears incorrect, display error message.
The line number and the colons are not in the script. I don't see the error here. Can the 'object expected' error mean many different things?
Thanks in advance for any replies to this post.
My server setup is in my signature.
Will
Line : 203
Char 1
Error : Object Expected
Code :0
URL : <!-- m --><a class="postlink" href="http://tresdev/repvacation.asp?suitsid=WS5926&parent=USER&access=0">http://tresdev/repvacation.asp?suitsid= ... R&access=0</a><!-- m -->
Here is the lines of code that it is referencing:
199 : // Check that month is between 1 &12.
200 : if(month<=0 || month>=13) { err=true;}
201 : // Check that day is right depending on month.
202 : if( month==2 && ((year/4)==parseInt(year/4)) ) { if(day<=0 || day>29) {err=true; }}
203 : if( month==2 && ((year/4)!=parseInt(year/4)) ) { if(day<=0 || day>28) {err=true; }}
204 : if( month==4 || month==6 || month==9 || month==11 ) { if(day<=0 || day>30) {err=true; }}
205 : if( month==1 || month==3 || month==5 || month==7 || month==8 || month==10 || month==12 ) { if(day<=0 || 206 : day>31) {err=true; } }
207 : // Check that year is OK
208 : //if(year<=0 || year>99) {err=true;}
209 : // If anything appears incorrect, display error message.
The line number and the colons are not in the script. I don't see the error here. Can the 'object expected' error mean many different things?
Thanks in advance for any replies to this post.
My server setup is in my signature.
Will