![]() |
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 |
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 > |
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! |
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! |
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.