Added by denis Bertini almost 9 years ago
Hi
I would like to store the contents of a Javascript string variable in to a std::string
data member of a class.
Do i need to use JSignal and JSlot to do this or would it be preferable to use
the predefined C macros of WJavaScriptPreamble used internally in Wt classes?
Thanks
Denis
You should indeed use JSignal where you want to call (asynchronously) a C function from within JavaScript.
Do not use the internal WJavaScriptPreamble and so on. We only (intend to) keep documented API stable.