creating a web-service that prints a rendered compnent

creating a web-service that prints a rendered compnent

by Eran Levin -
Number of replies: 2

Hi,

I would like to make a web-serivce the prints a rendered component (the quiz activity for implementing an ajax-based UI for the quiz activity).


  1. What are the formats for the client requests?
  2. Can I introduce such UI without rewriting the most, if not the whole of the quiz activity?
Average of ratings: -
In reply to Eran Levin

Re: creating a web-service that prints a rendered compnent

by Darko Miletić -

This looks like a weird request. Can you elaborate further your requirements and basic idea as to why you need this?


If you need Moodle quiz added to some external site just stuff it into iframe I would say.

In reply to Darko Miletić

Re: creating a web-service that prints a rendered compnent

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

A rendered anything is just a string (of HTML). It is easy to have a function that returns a string. And, it is easy to get that string. It comes from a call to a Moodle renderer method which returns a string.