Re: How can you implement MSHTML.HTMLDocument in ASP???
From: Yan-Hong Huang[MSFT] (yhhuang_at_online.microsoft.com)
Date: 05/03/04
- Next message: middletree: "Re: forcing everything to be selected"
- Previous message: Aaron Bertrand [MVP]: "Re: Need to be able for buttons to keep track of each other"
- In reply to: Jay Kappel: "Re: How can you implement MSHTML.HTMLDocument in ASP???"
- Next in thread: Bob Barrows [MVP]: "Re: How can you implement MSHTML.HTMLDocument in ASP???"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 03 May 2004 02:14:59 GMT
Hello Jay,
Where is the scripting running on? Client side or server side? If server
side, you can't do that since the DOM is a client-side thing, within the
browser. It doesn't exist on the server, and you can't access it from the
server to the client.
Have you though of the following methods?
1) Use XMLHttp object to get the content of the string and then parse it by
using the method at
http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downlo
ads/samples/internet/browser/walkall/default.asp.
The above WALKALL sample demonstrates the use of MSHTML as a UI-less HTML
parser.
2) As
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&c2coff=1&threadm
=mKdBZma%24CHA.2252%40cpmsftngxa08.phx.gbl&rnum=30&prev=/groups%3Fq%3DMSHTML
HTMLDocument%2Basp%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26c2coff%3D1
%26start%3D20%26sa%3DN mentioned, use a AxWebBrowser to act as the client
side. We'll have the AxWebBrowser.Navigate() to retrieve some URLs back. So
we can get DOM object in OnDocumentComplete method.
Hope that helps.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
- Next message: middletree: "Re: forcing everything to be selected"
- Previous message: Aaron Bertrand [MVP]: "Re: Need to be able for buttons to keep track of each other"
- In reply to: Jay Kappel: "Re: How can you implement MSHTML.HTMLDocument in ASP???"
- Next in thread: Bob Barrows [MVP]: "Re: How can you implement MSHTML.HTMLDocument in ASP???"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|