How to retrieve the result in VB from HTML/Javascript external scripts

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello !
I first apologize if I didnt post my question in the correct forum section.

What I would like to do is to find a way to get the results from a HTML/Javascript script in a string, using VB 2010.
To make it clean on a practical case, I would like to get, in my VB application, the results provided by the run of the following external script:
<script src="http://partner.tcgplayer.com/syn/synhighlow.ashx?pk=MAGCINFO&amp;pi=fnmp-124 </script>
The resulting string should be something like this :
"document.write(<+style type=text/css>#TCGPHiLoContainer {width: 300px;font-family: Arial;}#TCGPHiLoTable {width: 300px;margin-bottom: 3px;}.TCGPHiLoHeader {font-size: 8pt;text-align: center;}.TCGPHiLoHigh {background-color: #D9FCD1;color: Black;font-weight:
bold;font-size: 8pt;text-align: center;width: 65px;}.TCGPHiLoMid {background-color: #E6F4FF;color: Black;font-weight: bold;font-size: 8pt;text-align: center;width: 65px;}.TCGPHiLoLow {background-color: #FFE6E6;color: Black;font-weight: bold;font-size: 8pt;text-align:
center;width: 65px;}.TCGPHiLoLink {padding-left:5px; font-size: 8pt; border-bottom:none;}<+/style><+div id=TCGPHiLoContainer><+table id=TCGPHiLoTable cellspacing=0 cellpadding=1 border=0><+tr><+td class=TCGPHiLoLow>L:
<+a href=http://store.tcgplayer.com/product.aspx?id=38141&partner=MAGCINFO>$3.74<+/a><+/td><+td class=TCGPHiLoMid>M: <+a href=http://store.tcgplayer.com/product.aspx?id=38141&partner=MAGCINFO>$3.93<+/a><+/td><+td
class=TCGPHiLoHigh>H: <+a href=http://store.tcgplayer.com/product.aspx?id=38141&partner=MAGCINFO>$4.00<+/a><+/td><+td class=TCGPHiLoLink><+a href=http://store.tcgplayer.com/product.aspx?id=38141&partner=MAGCINFO>[View
all Prices]<+/a><+/td><+/tr><+/table><+/div>);"

How can I, using VB 2010, get that string from the url "http://partner.tcgplayer.com/syn/synhighlow.ashx?pk=MAGCINFO&amp;pi=fnmp-124" ?
Getting the Source Code with HTTPWebResponse of the previous URL is not a solution, as the distant server doesnt return anything without the script tags.
Help is very welcome ! Thanks in advance for answers !!
<br/>

View the full article
 
Back
Top