On Monday, July 9, 2018 at 2:48:10 AM UTC-7, Maurice Waka wrote:
>
> Am trying to get text area data from js to database but the value is not 
> posted. I have been using this code:
>
>
Another example of not doing things the web2py way?

/dps

 

> <div id="chat"></div>
>
>
>
> this.typeInput = function(callbackFn) {
>     var inputWrap = document.createElement("div")
>     var conn = sqlite3.connect("storage.sqlite")
>     var sql = "INSERT INTO post (message) VALUES (inputText)";
>     inputWrap.className = "input-wrap"
>     var inputText = document.createElement("textarea")
>     inputText.setAttribute("placeholder", "Type here anything...")
>     inputWrap.appendChild(inputText)
>     sql.appendChild(inputText)
>     inputText.addEventListener("keypress", function(e) {
>       // register user input
>       if (e.keyCode == 13) {
>         e.preventDefault()
> What could be the limitation?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to