Re: How can you implement MSHTML.HTMLDocument in ASP???

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Yan-Hong Huang[MSFT] (yhhuang_at_online.microsoft.com)
Date: 05/03/04


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.



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • NetpLdapBind: ldap_bind failed on \SERVER
    ... Clientcomputer mit OS <= Windows 2000 können in die Domäne ... erscheint folgende Fehlermeldung auf dem Client: ... Der angegebene Server kann den angeforderten Vorgang nicht ... Domain: DOM ...
    (microsoft.public.de.german.win2000.active_directory)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)