Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

AJAX mod editing: Difference between revisions

From MoodleDocs
(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 activities add or delete to a course, page reload to update course state. We need update course without reload.
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==
  TODO - how this will be implemented
# 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

  1. Create new dialog after "choose new activity or resource" dialog.
  2. Load activity/resource edit form in new dialog by AJAX.
  3. Validate form after submit(use AJAX and js for form).
  4. Save changes(use AJAX).
  5. Update course content(by AJAX).