Education/Projects/JetpackForLearning/Profiles/MUPPLE: Difference between revisions

Jump to navigation Jump to search
m
Line 116: Line 116:


The current [[http://github.com/Laurian/MUPPLE prototype code]] is quite hard to follow, it has grown organically around various real and supposed limitations of Jetpack.   
The current [[http://github.com/Laurian/MUPPLE prototype code]] is quite hard to follow, it has grown organically around various real and supposed limitations of Jetpack.   
* Jetpack code: http://github.com/Laurian/MUPPLE/blob/master/script/core.js
* Slidebar html code: http://github.com/Laurian/MUPPLE/blob/master/slidebar.html
* Slidebar javascript: http://github.com/Laurian/MUPPLE/blob/master/script/slide.js


We adapted some cross-site scripting style strategies in order to achieve a tight coordination between Jetpack and the code in the slidebar; therefore we use a hidden iframe (fed with data URIs) to communicate from the slidebat to jetpack (which listens for the load event), while from jetpack to slidebar or to any tab we inject script tags with raw code or JSONP.  
We adapted some cross-site scripting style strategies in order to achieve a tight coordination between Jetpack and the code in the slidebar; therefore we use a hidden iframe (fed with data URIs) to communicate from the slidebat to jetpack (which listens for the load event), while from jetpack to slidebar or to any tab we inject script tags with raw code or JSONP.  
Confirmed users
70

edits

Navigation menu