I am getting started on XOJO been using .net for a long while. I am trying to get the source code of a web page (desktop,mac) but I could not find this action for HTMLViewer. Have already looked into the forum but I could not get anything conclusive.
HTML Viewer is a little limited. The easiest way to get the source would be to track the page you’re on using the CancelLoad function and use a HTTP Socket to get the source.
Basically add a class to a project of type xojo.net.httpsocket - then add a ‘page received’ event to that. In there you can access/convert the http 1.1 data as a string. Check out the example above for the details.