Plugin: Collect data from external javascript

Plugin: Collect data from external javascript

by José Manuel Bouzán -
Number of replies: 0

Hi, I'm a newbie at moodle.

I'm trying to create a plugin that allows to incorporate various types of external activities that are already created ( html, png, js and css files).

The plugin already allows to upload all the files and execute the html file that opens the activity (fill in gaps, crosswords, puzzles, sort phrases...).

With the plugin itself I create a table in which I want to save the results of the activities (score, attempts, errors, execution time...) for each student.

I try that the activities send to the platform the results of their execution by means of jquery and ajax.

Is it possible to do what I try? What code should I insert?

I've been reading several times the web services topic and trying some examples but I can't get anything.

Can you help me. Thanks for your time and attention.


Average of ratings: -