|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Checking page size
Hey guys,
Is there some code to check the page size of some webpages i am opening using asp or javascript? I want to check that they are all over a certain amount (ie: they display something, and not just a blank page. )Also some code to make sure that the page is still valid (ie: It does not display "Page cannot be found") Thanks all |
|
#2
|
|||
|
|||
|
hi,
it's better to define your custom-error pages... (if an error occured the suitable error page is loaded -- depending on the error-number (e.g. 404)) http://www.highcontext.com/Articles/howto/404.php toms |
|
#3
|
|||
|
|||
|
Thanks, the problem is that if the link has expired, or the page has moved, the site still loads up with no error msg. Just the site background, logo etc and no other text or pictures.
So there is no 404 msg. |
|
#4
|
|||
|
|||
|
As far as the page size goes. Try the FileSystemObject. There is a File.Size method. You may have to check from your referring page though.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Checking page size |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|