Hi Johannes, you found on www.tntnet.org FAQ, Start Guide and Demos. Tntnet used a template language for html tags, you can include your function and more. But read the FAQ for more understanding how tntnet works.
Wecome to Tntnet :-) 2015-03-07 9:19 GMT+01:00 Johannes Bergmark <[email protected]>: > Hello! > I know C++ quite well as I've been programming it for hobby purposes in > many years, but I've keeping my hands away of HTML programming (as I > hate it :) ). So all this is quite new for me. > > Anyway, my question is, what is the best practice to call a C++ function > when a user is submitting a form? > > In part of my code it looks like this: > _os << "<td><form action='TO_HTML::test()' style='display: inline' > id='saveDay'><input type='submit' value='Save'></form></td></tr>" > << "\n"; > > I'm trying to save some user set data to database when the user presses > the save button in HTML form. As you see above the 'TO_HTML::test()' is > the test C++ function I want to call, but I don't know how to access > this function in HTML code. > > Does TNTNET provide any layers to call C++ functions in HTML code? What > is the most secure way to do this? If not, is it enough to use > Javascript (or should I use AJAX)? I'm not sure about the difference of > these two, but I don't want to study them before I know if they are > required for my purposes. > > Thanks for your help, Johannes. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Tntnet-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tntnet-general ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
