I'm not exactly sure what you're asking. When you retrieve a web page via a GET
using XMLHTTP
, you're just downloading a static copy of the HTML/XML. There's no host to fire events. You can't click buttons or use DOM methods to find elements. All you have is a string.
If you need it to behave like a true webpage, you'll need to load the string into a DOM document. You can save your XML response string to an HTML file and then load it using IE:
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "c:\test.htm"
Set DZ = IE.Document.GetElementsByName("ctl00$ContentPlaceHolderMainNoAjax$txtClubID")
Or, if you just need to search for DOM elements, you can fake a document by writing your XML response string to an HTMLFILE
object.
Set doc = CreateObject("HTMLFILE")
doc.Write strResponse
Set DZ = doc.GetElementsByName("ctl00$ContentPlaceHolderMainNoAjax$txtClubID")