IBM Support

Blank Pages occurring occasionally on the store front when submitting a form *|* -71E808CC723BF68A85257267005C4A5D- *|*

Question & Answer


Question

Blank Pages occurring occasionally on the store front when submitting a form *|* -71E808CC723BF68A85257267005C4A5D- *|*

Answer

Technote (troubleshooting)


Problem(Abstract)

You notice a submit on a form results in a blank page being return. This occurs most frequently with Internet Explorer and does not happen all the time. The double click handler is activated on the site.

Cause

JavavScript is used on the form to call a form.submit() command. When this is called two requests are being sent from the browser to the server. The WebSphere Commerce server captures this and responds only to the last request. Any requests before the last request will have a blank page returned.

For normal operation the browser will only listen to the last request resulting in the correct rendering of the page.

Since the browser sent two requests in some cases the browser will only maintain a listener on the first request. This will result in the blank page.


Resolving the problem

To ensure that the browser only sends one request check your JSP for the following combination.

A form input type of image that calls a JavaScript form.submit().

Example:

? ? function applyCard() {
? ? var form = document.OrderPaymentForm;
? ? form.submit();
? ? }

<input type="image" src="mybutton.jpg" width="50" height="17" onclick="javascript:applyCard();" value="apply">

With the input type of image the browser will submit the form to the server when the image button is clicked. A second submit will be generated with the applyCard function due to the form.submit() command.

Removal of the form.submit() JavaScript call will prevent the second request and resolve the blank page.


Cross reference information
SegmentProductComponentPlatformVersionEdition
CommerceWebSphere Commerce EnterpriseGeneralAIX Linux Solaris Windows6.0 6.0.0.1 6.0.0.2 6.0.0.3
CommerceWebSphere Commerce ProfessionalGeneralAIX Linux Solaris Windows6.0 6.0.0.1 6.0.0.2 6.0.0.3

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
13 October 2021

UID

ibm10771529