473,320 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to process html within asp

Hi there

I'm new here so please be patient if the question has been asked before.

My problem is that i receive a html-page from an external page(using WinHttpRequest 5.1 (see http://msdn.microsoft.com/en-us/libr...06(VS.85).aspx for more information)) and then I need to proces the received html, a bit like http://bytes.com/forum/thread55229.html except that i don't have it like a file. I've searched the internet for how-to about the HTMLFile object but could not find anything.

Can someone help me by telling me what the HTMLFile object can do? does it have methods like the javascript getElementById and so on.

Also I know my host supports microsoft HTML Object Library but can't find anything about this either so maybe this is another solution?

by the way, I won't post the html-page here since it is very long and very ugly, I can post my javascript version of what information I want from the html-page if you want it.

Thanks
KalleMOD
Sep 9 '08 #1
6 2208
jhardman
3,406 Expert 2GB
so is the received file in a long string?
Sep 11 '08 #2
so is the received file in a long string?
Yes it is, I receive it with WinHttpRequest's responseText method which returns the html as a long string
Sep 13 '08 #3
jhardman
3,406 Expert 2GB
hmm. I can't find any info on it. What language are you using? Is this an ASP.NET object or a "classic" ASP object (server.createobject)?

Jared
Sep 15 '08 #4
No it is classic asp and the link i provided looks like classic asp too so i guess there should be an object called HTMLFile in classic asp :)

maybe we could find the guy from http://bytes.com/forum/thread55229.html and ask him for help :)

KalleMOD
Sep 16 '08 #5
jhardman
3,406 Expert 2GB
No it is classic asp and the link i provided looks like classic asp too so i guess there should be an object called HTMLFile in classic asp :)

maybe we could find the guy from http://bytes.com/forum/thread55229.html and ask him for help :)

KalleMOD
The fso.readall method returns a long string with the entire text of the file. I still can't find any info on the HTMLFile object, but in that example (thread55229) he uses the doc.write command along with the readall method to put the entire HTMLFile in the doc object. I would suggest something like this:
Expand|Select|Wrap|Line Numbers
  1. doc.write myLongString
Let me know if this works.

If all else fails you could use the FSO to save the file as a temp file and then use that exact method to handle it, but this doesn't seem like a very elegant solution.

Jared
Sep 16 '08 #6
well I've tried to use the HTMLFile.write method with my response-html but it didn't print anything when I tried response.write HTMLFile afterwards and the biggest problem is that I have no clue what methods that HTMLFile have :(

/KalleMOD
Sep 16 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Stephen.Haeney | last post by:
I am deveeloping a WinForm application where I need to display a HTML page to the user. I would like to use IE to display this page then wait until they have closed the IE window before continuing...
77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
3
by: Danny Miller | last post by:
Hi there, I've got a web app that uses impersonation and makes calls to a SQL Server backend. I'd like to be able to automate the setting of database security for the web app upon deployment....
22
by: Zen | last post by:
Hi, My production machine has 2G of memory, when aspnet_wp.exe goes up to about ~1.2G of memory usage, I start get out-of-memory exception. Other processes don't use as much memory and I added...
8
by: Henrik | last post by:
Hi Is there any way to see what the System process is doing? We have developed an application running at a production site to measure and optimize the production. The application needs to be...
3
by: Marcin Kalicinski | last post by:
How do I use multiple Python interpreters within the same process? I know there's a function Py_NewInterpreter. However, how do I use functions like Py_RunString etc. with it? They don't take any...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.