
I came accross and interesting question in the SalesLogix Business Partner newsgroups. Someone needed to read the return from a webpage from a SalesLogix VBScript. They were trying to use the WebBrowser control and pull the HTML returned after setting the URL (which you can’t do with the SLX WebBrowser control). Anyway, XMLHTTP is the right way to do this.
If all you want to do is read what is returned from a URL then use something like XMLHTTP from the MS XML parser to read the data from the URL. Here’s a sample that will read the HTML from Google.com and place the results in a TextBox.
Dim objHttp
Set objHttp = CreateObject("Msxml2.ServerXMLHTTP")
objHttp.Open "GET", "http://www.google.com/", False
objHttp.Send
Text1.Text = objHttp.ResponseText
Set objHttp = Nothing
Thanks Ryan, I’ve been trying four other scripts to get an ASPX page called… to switch an RS232 actuator…. to switch my ligths on/off…. your’s did it. Regards Rouan – South Africa