Calling sb-functions from javascript
Posted: Sun Aug 26, 2018 11:53 am
Hello,
A question:
I injected some JavaScript calls ito the Body of the spiderapp.
I want to Access the spider-objects from there like:
But Console repors that the functions are undefined.
So how do I access objects or commands from main-html/JavaScript?
Regards
A question:
I injected some JavaScript calls ito the Body of the spiderapp.
I want to Access the spider-objects from there like:
Code: Select all
<script type='text/javascript'>
<!--
var Module = {
preRun: [],
postRun: [(function() {
newlispEvalStr = Module.cwrap('newlispEvalStr', 'string', ['string']);
})],
print: (function() { return function(text) { }; })(),
printErr: function(text) { },
setStatus: function(text) {
f_spider_disablegadget(3,0);
f_spider_setgadgettext(5,text);
}
};
-->
</script>
So how do I access objects or commands from main-html/JavaScript?
Regards