Project

General

Profile

Javascript variable and C++ data member

Added by denis Bertini about 8 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


Replies (1)

RE: Javascript variable and C++ data member - Added by Koen Deforche about 8 years ago

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.

    (1-1/1)