Education/Projects/JetpackForLearning/DesignCamp/TechnicalQuestions: Difference between revisions

Jump to navigation Jump to search
sessionstore fun
(Created page with 'This page is a place for you to drop in solutions to common code problems that JfL projects face in their jetpacks during the Design Camp. We encourage you to dump your code on …')
 
(sessionstore fun)
Line 9: Line 9:
A. First you need to get the document, then determine the insertion point using the DOM, and then do XYZ to insert the image. A code example is at:
A. First you need to get the document, then determine the insertion point using the DOM, and then do XYZ to insert the image. A code example is at:
[http://github.com/jflimageinsertion http://github.com/jflimageinsertion]
[http://github.com/jflimageinsertion http://github.com/jflimageinsertion]
'''Q: How do save the tab state for later recreation?'''
You can capture the current tab state information from "sessionstore.js".  Recreating it is TBD, but see code at http://etherpad.com/OrGP3AA7F5 which reads the session store file and instantiates the JSON object.
61

edits

Navigation menu