Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello all,

For the last month or so, i have been trying to get my hands on all the stuff that HTMLVIEWER can and cannot do/handle. I am all for RTFM but, as yet, have found only the gracious and info filled statement:

--The HTML viewer in the current version of BREW has been designed to enable developers to add a degree of flexibility to application interfaces and to simplify application development. The feature set is focused on enabling flexible integration with applications. Its HTML formatting features and its ability to deal with mal-formed content are limited. HTML presented to the viewer should be properly constructed, with start and end tags for non-empty elements and no mismatched end tags. As a result, HTML that is tested with the particular application is advised, and it is not intended to support for arbitrary content (as obtained from various web sites).

Right, good, nice, but WHAT DOES IT ACTUALLY SUPPORT? I'm getting a weird error displaying a simple webpage and it is the HTMLVIEWER_EventHandler() func who actually chokes and dies on me. I have a strong feeling that the cause of it is one of the special characters that are embedded with in the text (tabs, punctuation,etc.) so i will go ahead and remove those to see if it fixes the problem.

Anyway, I need to be able to catch such and any of those errors to prevent the program from dying. What i am basically doing is this:

1. Call iweb to retrieve a simple,very simple, compliant 3.2 html page.
2. Grab the answered source and pass it to htmlviewer_loadfromsource() (yes, i check for errors and only those answers that return code 200 are passed on)
3. Make the HTMLViewer active as soon as it reports its done.
4. Let the user scroll down the page.
It is here that, somtimes, the viewer dies. At the middle of a page an all, just displaying "text"

Has anyone encountered something like this?

Saludos,

Alhiem

P.S. Sorry for the capitals above, but im just a bit frustrated at the moment and would just love to find a document (or someone) with a hint.

Please see attached.

Please see attached.

Thank you, thank you!
Saludos,
Alhiem

Thank you, thank you!
Saludos,
Alhiem