Sep 1, 2005 #1 g2000 Programmer Joined Aug 31, 2005 Messages 39 Location US I wanna grab one hidden field from a HTML file. This file is from another site. Is that possible to do it? I know it's easy if it's XML.
I wanna grab one hidden field from a HTML file. This file is from another site. Is that possible to do it? I know it's easy if it's XML.
Sep 1, 2005 #2 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN you need to use XMLHTTP. Here is the sample code... Code: <% url = "[URL unfurl="true"]http://www.espn.com/main.html"[/URL] set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.send "" Response.write xmlhttp.responseText set xmlhttp = nothing %> -DNG Upvote 0 Downvote
you need to use XMLHTTP. Here is the sample code... Code: <% url = "[URL unfurl="true"]http://www.espn.com/main.html"[/URL] set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.send "" Response.write xmlhttp.responseText set xmlhttp = nothing %> -DNG
Sep 1, 2005 Thread starter #3 g2000 Programmer Joined Aug 31, 2005 Messages 39 Location US thanks a lot. actually I am looking for one hidden field from that html. Is there a quick way to grab that? Or I have to go line by line and search for that. Upvote 0 Downvote
thanks a lot. actually I am looking for one hidden field from that html. Is there a quick way to grab that? Or I have to go line by line and search for that.
Sep 1, 2005 #4 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN do you know that name of that field...if so, then you just use some string functions like Instr() -DNG Upvote 0 Downvote
do you know that name of that field...if so, then you just use some string functions like Instr() -DNG
Sep 1, 2005 Thread starter #5 g2000 Programmer Joined Aug 31, 2005 Messages 39 Location US Got it! Thanks!!! Upvote 0 Downvote
Sep 1, 2005 #6 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN no problem...glad to be of help -DNG Upvote 0 Downvote