[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat May 04, 2024 2:32 pm
I could not make much sense of ZAP as it is a new subject for me, but it certainly seemed to get to the heart of the matter.
1.52.7/8/9 seem to have completely fixed the 'random restarts for no apparent reason' problem, which suggests that the new library you upgraded to is helping. I am still getting occasional restarts when accessing a web page from an additional browser. The jscall max time remains around ~500mS, but the average time is very short (18.6mS at the moment) so the long times must be quite rare.
I am wondering if I have the right html for my pages. Given that a lot of html code is generated by Annex even when the menu is turned off, how should I code a page? Currently I program the page as if it is the only source of input to the browser. Are there things that I don't need to/should not/should include? Browsers are very tolerant but maybe there is some effect on Annex.
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat May 04, 2024 2:32 pm
I am still getting occasional restarts when accessing a web page from an additional browser.
I found a place where the code crashes with ZAP but I still not identified the real cause and a possible solution.
This is quite complicate as ZAP opens a lot of parallel connections that - could be - the real cause of the crash.
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat May 04, 2024 2:32 pm
I am wondering if I have the right html for my pages. Given that a lot of html code is generated by Annex even when the menu is turned off, how should I code a page? Currently I program the page as if it is the only source of input to the browser. Are there things that I don't need to/should not/should include? Browsers are very tolerant but maybe there is some effect on Annex.
You don't need to include all the "heading stuff" like
<html> <!DOCTYPE html> <head> <body> ...
All of these elements are already included in the 'Output' page generated by annex. Repeating them would only be redundant. Since the page is generated dynamically, certain parts, such as including .js scripts or .css files, will be ignored. To address this, you must utilize the commands JSEXTERNAL and CSSEXTERNAL.
In reality, the output page incorporates HTML, JavaScript, and CSS code that establishes a connection between the page itself and the annex basic interpreter, facilitating the exchange of variables and commands between the two 'worlds.' I've tried to simplify the final user experience to ensure that this process occurs 'magically' in the background."
So, you should just put the items you need without taking care of the other items.
If you have a good understanding of HTML/JavaScript, you can indeed create web pages dynamically by directly writing into one or more HTML files and opening them with a browser.
Alternatively, you could employ a "PHP style" approach to create web pages using the callback of "OnUrlMessage." However, this latter method is probably not suitable for the typical AnnexRDS audience.