Issue Details (XML | Word | Printable)

Key: MDL-17146
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Penny Leach
Reporter: Penny Leach
Votes: 0
Watchers: 6
Operations

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

find out a way to send mforms back in ajax requests

Created: 06/Nov/08 05:29 PM   Updated: 30/Sep/09 02:06 PM
Return to search
Component/s: AJAX, Forms Library, Portfolio API
Affects Version/s: 2.0
Fix Version/s: None

Participants: Dan Poltawski, Martin Dougiamas, Nigel McNie and Penny Leach
Security Level: None
Affected Branches: MOODLE_20_STABLE


 Description  « Hide
I want to ajaxify the Portfolio code to make the UI similar to the file picker but while doing a walkthrough of how this might work with Nico we came across the following problem.

The portfolio API uses mforms as a standard way for plugins and pieces of moodle that export content to communicate their export-time options.

The way I imagined the 'ajaxification' to work would be that the js would make xmlhttp requests to a portfolio handler, which would call the same functions in the exporter library as normal, and send back XHTML as the response, which the js would use to replace the contents of the popup div.

However, in the case of mforms, the XHTML that gets sent back contains javascript, mixed in together. Some of this needs to be executed at the time the popup div is replaced and there's no good way to do this.

This bug should serve as a dicsussion for how we can find a workaround, because changing the code to not use mforms is really not an option, I think. It's the standard way to make forms in Moodle.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
No commits have yet been performed on this issue.