How to pass Object from C++ to JavaScript and vice-versa(Hybrid Plug-In)
Hi Everyone,
I've the problem of passing data from C++ to JavaScript, when I have to pass string or integers it is not a problem because I use :
For C++
- Utils<IScriptArgs>()->Set()
- Utils<IScriptArgs>()->Get()
For JavaScript
- app.scriptArgs.getValue()
- app.scriptArgs.setValue()
I wanted to know if is possible pass an object of C++ (like IDocument, IMasterPage, IIDXMLElement and other).
I saw classes like ScriptData, IRequestData that can be useful for me, but i've no idea of how use that, i've use that for passing a string from Js to C++, but nothing else.
If someone did something similar, can show me the code to do that?
I thank in advance whoever will answer the question.
- Stefano
