Skip to main content

Problem:

Clicking on an image to print using Javascript's function window.print() invokes the printer dialog and causes the form to be submitted. This causes a CGI error or "page cannot be found".

The CGI Error states the following message: "The specified CGI application misbehaved by not returning a complete set of HTTP headers."

Resolution:

The problem is caused by the usage of "inputimage" instead of "image". The "inputimage" causes the form to be submitted. This is not necessary when the purpose is simply to print the current page using window.print().

Make sure to use "image", which is in Page Elements toolbar (while "inputimage" is the one in the Form Elements toolbar).

Old KB# 7027