pkdevbox / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Support standard form submit inputs input[type="submit"] everywhere and deprecate use of <a> tags a[type="submit"] #332

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
iUI has from the beginning used the following link to trigger an ajax form 
submission:
        <a class="whiteButton" type="submit">Submit (a)</a>

This is non-standard HTML and has been the source of many compatibility 
problems.

iUI should use a standard HTML <input> tag instead:

        <input class="whiteButton" type="submit" name="submitInput" value="Submit" />

iui.js and iui.css should be changed to support using the <input> tag in every 
case where the <a> tag has previously been used and should officially deprecate 
use of the <a type="submit"> tag.  This means the documentation needs to be 
updated, too.

Original issue reported on code.google.com by msgilli...@gmail.com on 11 Apr 2012 at 11:55

GoogleCodeExporter commented 8 years ago
Issue #117 points out that we are using the 'type' attribute on <a> tags 
incorrectly.  To close #117, we'll have to get rid of type="cancel", too.

Original comment by msgilli...@gmail.com on 12 Apr 2012 at 7:21

GoogleCodeExporter commented 8 years ago
The changes on this branch address the issue:
http://code.google.com/r/msgilligan-iui-dev/source/list?name=msgilligan-form-sub
mit-issue332

Those changes can be tested using the form-test.html test page an updated 
version of which is here:
http://stage.iui-js.org/test/form-test.html

Original comment by msgilli...@gmail.com on 12 Apr 2012 at 7:29

GoogleCodeExporter commented 8 years ago
The changes on the msgilligan-formn-submnit-issue332 branch also seem to 
provide a 'final' fix for Issue #208.

Original comment by msgilli...@gmail.com on 12 Apr 2012 at 7:31