Note that there are some explanatory texts on larger screens.

plurals
  1. POForm submit button does not work in Firefox but works in Chrome or IE
    primarykey
    data
    text
    <p>I have a form with some input fields and a submit button. The form should submit to a servlet.</p> <p>When I hit submit/return, everything is fine in Chrome or IE, but it does nothing on Firefox. Any idea about the issue?</p> <p>HTML:</p> <pre><code>&lt;body&gt; &lt;div align="center"&gt; &lt;form&gt; &lt;table cellpadding ='2' border ='0'&gt; &lt;tr&gt; &lt;td&gt; &lt;label for="Database"&gt;Database&lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;input id="database" type="text" onchange="setdirtybit()" name="Database" style="width:200px"&gt;&lt;/input&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;label for="Script"&gt;Script&lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;input id="script" type="text" onchange="setdirtybit()" name="Script" style="width:200px"&gt;&lt;/input&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;br /&gt; &lt;input type ='submit' value='Submit' onclick='Close()'&gt;&lt;/input&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>JavaScript:</p> <pre><code>function Close() { window.returnValue = ""; if(window.dirtyFlag) { document.forms[0].method="post"; document.forms[0].action="/nbreports/updates/"; document.forms[0].submit(); window.returnValue = getValue('database') + '/' + getValue('script') ; } window.close(); } function getValue(varName) { if(document.getElementById(varName) == null) return ""; if(document.getElementById(varName).value == null) return ""; else return document.getElementById(varName).value; } function setdirtybit() { window.dirtyFlag = 1; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload