I’m not sure what is going on, it works fine on my Mac tests and it worked fine on Windows with the older 2016 R builds, but my HTMLViewer will not call StatusChanged on Windows 10 using Webkit
Thanks, I searched before I posted must not have typed in the magic combination of words for the “forum” search.
So if I use title changed how do I get the contents of the htmlviewer now, I use to get the newStatus as a string to display it in a textbox, but if I use titlechanged or documentcomplete what is the preferred way of reading the html contents.
I have feeling doumentcomplete is the way I have to go, I am downloading a text file with no html markup, ie no header for title.
Why are you doing that with a HTML Viewer? Use a HTTPSocket if you’re trying to download a file and get its contents, HTML Viewer is for displaying HTML markup.
Anyway, to answer your question, DocumentComplete does not give you the contents of the loaded page. TitleChanged is how we can pass data out of the HTML Viewer, but remember - it’s a hack and there are aspects you need to account for (new lines, 4kb limit)
Thanks Tim, yeah the 4kb will make me hit a wall for larger files, originally it was to display contents in an html viewer and the regex out the needed strings for a text box, but I agree changing it to using HTTPSocket in this case make more sense. Too bad we lost this feature with the new webkit.
See older threads about this topic.[/quote]
Can anyone give me one good reason why the documentation doesn’t reflect this? I just spent half a day re-discovering all this for myself.
I need to get the HTML back from the HTMLViewer so I guess I’ll have to change to use .title for the time being (on Windows, at least).