JSlot: JavaScript from C++
Added by Artem NA over 13 years ago
I am trying to call Flash ActionScript from server-side using ExternalInterface. C server side -> JavaScript JSlot -> Action Script ExternalInterface.
And it does not work. Where I can find any examples on using JSlot? It seems there are not many around.
Replies (4)
RE: JSlot: JavaScript from C++ - Added by Artem NA over 13 years ago
In flash I declare function "browseAndUpload"
ExternalInterface.addCallback("browseAndUpload", browseAndUploadFunc);
In C code I call
wApp->doJavaScript(jsFlashRef()+".browseAndUpload();" );
And I get:
Wt internal error: TypeError: Wt3_1_8.getElement("ojm0_flash").browseAndUpload is not a function, code: undefined, description: undefined
RE: JSlot: JavaScript from C++ - Added by Mohammed Rashad over 13 years ago
see examples/javascript
or
examples/feature/javascript
too lazy to check :)
for the error message:
you can enable debug true in wt_config.xml
RE: JSlot: JavaScript from C++ - Added by Mohammed Rashad over 13 years ago
see examples/javascript
or
examples/feature/javascript
too lazy to check :)
for the error message:
you can enable debug true in wt_config.xml
seems like a js loading error or some js object is not available not sure
RE: JSlot: JavaScript from C++ - Added by Artem NA over 13 years ago
I have seen those examples - no JSlots there.