Issue Details (XML | Word | Printable)

Key: MDL-14276
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: moodle.com
Reporter: Nicolas Connault
Votes: 2
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

AJAX implementation for course view relies on HTML output

Created: 09/Apr/08 02:31 PM   Updated: 13/Nov/09 04:08 PM
Return to search
Component/s: AJAX, Course
Affects Version/s: 1.7.4, 1.8.4, 1.9, 2.0
Fix Version/s: None

Issue Links:
Dependency
 

Participants: moodle.com, Nicklas Lindgren, Nicolas Connault and Wen Hao Chuang
Security Level: None
Affected Branches: MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE


 Description  « Hide
See lib/ajax/section_classes.js

When AJAX is switched on (site and course level), the course view implementation is brittle and buggy. The script waits for the whole page to be loaded, then "repaints" elements like icons and drag handles. This is causing a number of user interface bugs (see linked issues), and males the javascript a pain to maintain.

The proposed solution is to implement code that lets the course export its state (sections, resources, blocks) as JSON data, which YUI can then use to build the interface, independent of HTML output. This forces a branching in how the interfaces are designed, and may involve some duplication of code, but should resolve most of the interface bugs, and may improve the speed and usability (especially drag and drop).

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Nicklas Lindgren added a comment - 16/Apr/08 08:30 PM
I don't agree that this will resolve the specific problems described in MDL-11539 / MDL-12198. The primary problem there is the discrepancy between the visual feedback provided in the browser and the actual changes performed in the server.

Nicklas Lindgren added a comment - 16/Apr/08 09:44 PM
MDL-11746 is unrelated to AJAX.
MDL-12625 (aka MDL-10880) has a solution.

There are other aspects of the AJAX implementation i think is in more need of improvement (MDL-11675).


Wen Hao Chuang added a comment - 24/Mar/09 08:25 AM
any update on this one? Just curious..