Moodle for mobile

Cannot Retrieve 's DOM

 
Picture of Daniel Romero
Cannot Retrieve 's DOM
 

Hello, I am trying to obtain moodle mobile's iframe DOM on my player.html, player.js file (located in www/addons/mod/scorm. Although since the structure of the iframe is different, using getElementById or JQuery's .content() method only returns null. Would anyone know how to retrieve the DOM of an <mm-iframe> ? I have attached the screenshot of the player.html, note I have added an ID to the <mm-iframe> called 'scorm-iframe' . Also I have attached my player.js file to show how i try to assign and log the DOM after the fetch data promise. 

Thank you



 



 
Average of ratings: -
Picture of Juan Leyva
Re: Cannot Retrieve 's DOM
Core developersMoodle HQParticularly helpful MoodlersPlugin developersTesters

Hi,

you can check the core/directives/iframe.js to see how to retrieve the contents of the element


 
Average of ratings: -