Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64972

LTI Message Handling and IFrame Resizing

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.2
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      Implement the functionality of the following LTI source plugin in core: https://moodle.org/plugins/ltisource_message_handler

      Canvas LMS currently has a script to receive posted messages from a tool consumer. It would be useful for Moodle to have a similar feature for tool providers to take advantage of. The biggest issue is that the LTI iframes in Moodle are very small and the height can not be changed by the tool provider. This means that most tool providers design their content to be opened in a new window or tab.

      The LTI Source plugin I have written injects a script to mod/lti/view.php which listens for messages posted from within the iframe. I'd like to implement the message listening JS functions to core. The functions as implemented in the existing plugin can be seen here.

      Possible message subjects I would like to implement:

      • lti.frameResize
        • Update the LTI iframe height to the provided height.
      • lti.scrollTop
        • Scroll the tool consumer window to the top of the iframe. Useful when changing pages within the iframe.
      • lti.removeBorder
        • Removes the iframe border.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              colinbernard Colin Bernard
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: