I'm using XMLHTTP to grab the source from various pages so that I can extract links and information from them.
I've encountered a case where the information I need is buried inside the head block of the page, inside a script tag.
When I examine the string loaded into the xmlhttp's "response text" field, I'm finding that the script source has been filtered out. I.e. it's gotten the open and close script tags, but nothing between them.
Do I need to do something special with my XMLHTTP calls to get the javascript source to load? At the moment, I'm just doing the vanilla
to load in the page.
Looking at the page's source itself, I find that within the script tags, the code itself is enclosed between "<.!--" and "//-->" tags. (Without the period in that first tag, of course - that's just to get this parser not to strip out those codes in my forum message! )
Does this have something to do with it - and, if so, how do I get vba to go ahead and read the information wrapped within these tags?
thanks,
LP
I've encountered a case where the information I need is buried inside the head block of the page, inside a script tag.
When I examine the string loaded into the xmlhttp's "response text" field, I'm finding that the script source has been filtered out. I.e. it's gotten the open and close script tags, but nothing between them.
Do I need to do something special with my XMLHTTP calls to get the javascript source to load? At the moment, I'm just doing the vanilla
Code:
oXMLHTTP.Open "GET", theURL, False
oXMLHTTP.send
Looking at the page's source itself, I find that within the script tags, the code itself is enclosed between "<.!--" and "//-->" tags. (Without the period in that first tag, of course - that's just to get this parser not to strip out those codes in my forum message! )
Does this have something to do with it - and, if so, how do I get vba to go ahead and read the information wrapped within these tags?
thanks,
LP