Note:

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

Capturing and sending to the server selection user piece of text on the web page

From MoodleDocs


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.


User interface

  • What it will look like?

After selection piece of text program will send this text to the server. Then after processing of text, server will send to the page data. For example it could be coordinates of frame, which picks some part of graph on the picture


  • How user can activate/deactivate this?

User can do it with switching 2 radiobuttons on page


  • How program will specify on what DOM elements it will work?

Program interface

  • Protocol - what data will be sent to the server and how?

Data will be sent to the server using http protocol.