AJAX mod editing: Difference between revisions
From MoodleDocs
(→Scope) |
(Note about plan not to migrate this page to the new developer resources. See template for more info.) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Template:WillNotMigrate}} | |||
==Scope== | ==Scope== | ||
Now when | Now when we add or update activity/resource to a course, settings of open in new page. And we need to reload page to see course state. We need to change that. Activity/resource settings must be opened in dialog without page redirection, and changes must be seen on course page without reload. | ||
==Project== | ==Project== | ||
# Create new dialog after "choose new activity or resource" dialog. | |||
# Load activity/resource edit form in new dialog by AJAX. | |||
# Validate form after submit(use AJAX and js for form). | |||
# Save changes(use AJAX). | |||
# Update course content(by AJAX). |
Latest revision as of 13:51, 24 June 2022
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable. |
Scope
Now when we add or update activity/resource to a course, settings of open in new page. And we need to reload page to see course state. We need to change that. Activity/resource settings must be opened in dialog without page redirection, and changes must be seen on course page without reload.
Project
- Create new dialog after "choose new activity or resource" dialog.
- Load activity/resource edit form in new dialog by AJAX.
- Validate form after submit(use AJAX and js for form).
- Save changes(use AJAX).
- Update course content(by AJAX).