Note:

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

Talk:Javascript-interface for repeat elements function: Difference between revisions

From MoodleDocs
mNo edit summary
mNo edit summary
Line 1: Line 1:
# "Where it will be" - don't think full list is necessary, you may just list some places. Core function should work anywhere it called, calling isn't you problems.
1. Consider optionally sending AJAX request to the server to inform it of the adding blanks if it will be found really necessary. --[[User:Oleg Sychev|Oleg Sychev]] 21:43, 13 October 2010 (UTC)
# I don't think using AJAX to add new blanks is a good idea. Why don't just add them using javascript on the page, creating new HTML-elements (you'll need a hidden empty blank somewhere ready to copying) and changing hidden element with the number of blanks? The server is stateless, it won't find anything strange when the modified form will be submitted.
# Last sentences about deleting/moving isn't necessary, you are talking with the smart people, they sure know what those icon do. At least make pictures smaller - or just delete all this.
# Still nothing about preserving original numbers of the blanks and proposed changes in the repeat_elements interface to set $prefix instead of two existing (and one new) element names...
# I don't see any "restore order" button on the screenshots, I also don't sure why it is necessary while it definitely wouldn't be easy thing to implement. If you implement all other things that will be quite enought.
--[[User:Oleg Sychev|Oleg Sychev]] 21:27, 2 October 2010 (UTC)

Revision as of 21:43, 13 October 2010

1. Consider optionally sending AJAX request to the server to inform it of the adding blanks if it will be found really necessary. --Oleg Sychev 21:43, 13 October 2010 (UTC)