Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   checking page size in kb (http://www.velocityreviews.com/forums/t790388-checking-page-size-in-kb.html)

09-22-2003 08:41 AM

checking page size in kb
 
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

-----------------------------
This message is posted by http://Asp.ForumsZone.com


Stuart Palmer 09-22-2003 09:42 AM

Re: checking page size in kb
 
Look up the file system object (FSO) on yahoo and there is a size parameter
for that object, you can then look at the file size from there.

Stu

<g_hulshoff@hotmail.com> wrote in message
news:269174987871468@Asp.ForumsZone.com...
> 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
>
> -----------------------------
> This message is posted by http://Asp.ForumsZone.com
>




g g 09-22-2003 12:55 PM

Re: checking page size in kb
 


Thanks, but the pages to be checked are not on my FTP, they are hosted
by another site. Will the FSO still work?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

g g 09-22-2003 12:55 PM

Re: checking page size in kb
 


Thanks, but will the FSO be useful if the pages to be opened are hosted
by someone else?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Aaron Bertrand - MVP 09-22-2003 01:58 PM

Re: checking page size in kb
 
If you can access them by HTTP:// then you can use MSXML.
http://www.aspfaq.com/2173

You can check content length, response status (e.g. 404), etc.



"g g" <g_hulshoff@hotmail.com> wrote in message
news:uslxJjQgDHA.696@TK2MSFTNGP09.phx.gbl...
>
>
> Thanks, but the pages to be checked are not on my FTP, they are hosted
> by another site. Will the FSO still work?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!





All times are GMT. The time now is 12:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57