Javascript in ICF pages not executed
[e6 executed] [executed] [ICF] [javascript] [Lightspeed] [xmlHTTPRequest]
Symptom
You maintained error messages for application errors for your application in ICF. However, when an error is triggered, the system does not display your page, or does not correctly execute the Javascript contained in the page.
Other terms
Lightspeed, ICF, xmlHTTPRequest
Reason and Prerequisites
The pages are no longer displayed correctly, or Javascript is not executed correctly, since a xmlHTTPRequest object is used in the Web Dynopro ABAP for the communication between client and server. An XML data format is used for the communication between client and server. During such a response by the server, data is inserted in the relevant location in the browser DOM by the client framework.
If an error is triggered, the ICF does not generate an XML response, but a HTML response, which cannot be processed by the client framework. In addition, the Javascript is no longer executed since the onload event browser is no longer executed either.
Solution
If you defined an explicit response page for your page, in which functions are to be executed using Javascript, change your page as follows: