This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| var frm = $('#FORM-ID'); | |
| frm.submit(function () { | |
| $.ajax({ | |
| type: "POST", | |
| url: "YOUR URL", | |
| data: frm.serialize(), | |
| success: function (data) { | |
| // get results from data | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function () { | |
| $("#myform").submit(function (event) { | |
| event.preventDefault(); | |
| alert("success"); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fill_checker(cls, **kwargs): | |
| return type(cls.__name__, (cls,), kwargs) | |
| class AbstractSectionFillChecker: | |
| FILL_STATUS_EMPTY = "EMPTY" | |
| FILL_STATUS_FILLING_STARTED = "FILLING_STARTED" | |
| FILL_STATUS_FILLED = "FILLED" | |
| ST_INSTANCE = "WORK_PROGRAM" |