Login / Register  search  syndication  about

          Ryan Farley's Blog

Ryan Farley on .NET Development with a focus on CRM Development for SalesLogix

Reading HTML from a URL via VBScript

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

Text1.Text = objHttp.ResponseText
Set objHttp = Nothing


What's This?
Bookmark and Share

About Ryan Farley

   Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix since 2001 and believes in sharing with the community. He loves C#, Javascript, Python, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

View the SalesLogix Mobile Seveloper Series
View the SalesLogix SData Developer Series
View the Git for the SalesLogix Developer series

Related Content
   Better Code Organization for Infor CRM (Saleslogix) Mobile Customizations
When customizing the Infor CRM (Saleslogix) Mobile client, it's common for the ApplicationModule to g
Posted on May 05, 2015 by Ryan Farley to Ryan Farley's Blog
   Microsoft's New Visual Studio Code IDE and Infor CRM (Saleslogix) Mobile
Today at Microsoft's Build Developer Conference, a new, free, cross-platform code editor for web appl
Posted on Apr 29, 2015 by Ryan Farley to Ryan Farley's Blog
   Creating a Searchable & Filterable ComboBox in Infor CRM (Saleslogix) Web Client
I've had a few posts lately covering the ComboBox control in the Infor CRM (Saleslogix) Web Client. T
Posted on Feb 05, 2015 by Ryan Farley to Ryan Farley's Blog
   How to Disable the ComboBox Control in the Infor CRM (Saleslogix) Web Client
There's a problem with the ComboBox control in the Infor CRM (Saleslogix) Web Client. It won't di
Posted on Jan 22, 2015 by Ryan Farley to Ryan Farley's Blog
   Index of Posts for Starting with Infor CRM (Saleslogix) Development
The blogs on customerfx.com go all the way back to 2003. There's years and years worth of information
Posted on Dec 30, 2014 by Ryan Farley to Ryan Farley's Blog


Norman Rice said:

In SLX 6.2 you can get the HTML from the SLX Browser control. See LoadSnapShot event in the Opportunity Detail form
July 26, 2004 1:21 PM

Ryan Farley said:

Thanks for the tip Norman. Although, unless you need to see the HTML, I'd stick with just pulling it in code anyway. No need for the extra overhead to render if you don't need it ;-)

Thanks, Ryan
July 26, 2004 1:23 PM

Rouan van Niekerk said:

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

April 17, 2009 8:31 AM
All contents Copyright © 2015 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register