I have a gadget with a simple form whose ACTION attribute is set to an
empty string:
<FORM NAME=ColorSelection ACTION=""><P>
<INPUT TYPE=RADIO NAME="Color" VALUE="Red">red<BR>
<INPUT TYPE=RADIO NAME="Color" VALUE="Blue">blue<BR>
<INPUT TYPE=RADIO NAME="Color" VALUE="Green">green<P>
<button id="chooseColor" onclick="buttonClicked()">Select</button>
</FORM>
This works fine on Chrome, but on FireFox after clicking on the
button, buttonClciked() is called correctly but then the gadget is
replaced by the error message:
No container specified.
Error 404
I managed to work-around this by putting the button out of the form,
but this is not a clean solution.
Has anyone encountered a similar issue?
Thank you,
Boaz
<button type="button" id="chooseColor" onclick="buttonClicked
()">Select</button>
If you don't include type="button" then the default is assumed, which
is type="submit" - so the form is actually being submitted and that's
throwing the error as the action is empty.
Note that normally an empty action is legal and is equivalent to the
current document's address (see
http://stackoverflow.com/questions/1131781/blank-html-form-action-posting-back-to-self
for example), and it does work fine if you use it on FireFox or Chrome
in a standalone HTML document (not in Wave), and in Chrome it works
also inside a Gadget.