View Single Post
Old 04-02-2012, 02:42 PM   #3595
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Analogus,

same here "fun" and though more then 20 years in programming/reverse-engineering only some two years with kinoma-FSK and JavaScript.

Look on quisvir's code applied to main.xml.
There are some new buttons with actions like : "doAddToCollection"

The "trick" is to set your code into the right "context", which for above mentiond example is: "model.container.sandbox.OPTION_OVERLAY_PAGE.sandb ox.doAddToCollection"
(See BookManagement_x50.js)

To find the context folllow the xml-structure of your "host".

All xml-created/triggered code is executed in "sandbox"es separating it form the inner/elevated FSK or also PRS+core/addon code.
Mark Nord is offline   Reply With Quote