[web2py] Re: how to send data to the server with web2py_websocket

2013-12-11 Thread Peter Govers
Thanks for the pull request Niphlod. On Tuesday, December 10, 2013 9:09:29 PM UTC+1, Niphlod wrote: sent the PR https://github.com/web2py/web2py/pull/325 Thanks for the patch. On Tuesday, December 10, 2013 5:57:37 PM UTC+1, Peter Govers wrote: Hello Lyn2py, I ran into the same problem

[web2py] Re: how to send data to the server with web2py_websocket

2013-12-10 Thread Peter
Hello Lyn2py, I ran into the same problem as you did and couldn't quite figure out what caused it. The JS function 'web2py_websocket' is described in /static/js/web2py.js. The file web2py.js was given a makeover in Web2py 2.6.1 as changelog suggests: *For pre 2.6 applications to work with

[web2py] Re: how to send data to the server with web2py_websocket

2013-12-10 Thread Niphlod
sent the PR https://github.com/web2py/web2py/pull/325 Thanks for the patch. On Tuesday, December 10, 2013 5:57:37 PM UTC+1, Peter Govers wrote: Hello Lyn2py, I ran into the same problem as you did and couldn't quite figure out what caused it. The JS function 'web2py_websocket' is described

[web2py] Re: how to send data to the server with web2py_websocket

2013-08-02 Thread lyn2py
Ok I found a solution online, maybe Massimo can confirm that there is a bug in web2py_sockets.py https://groups.google.com/forum/#!msg/python-tornado/kgCoVCUkdeM/99yS2ZEhkVAJ Ah, OK. Looks like a web2py bug then. web2py's websocket support contains handlers that return true or false; these

[web2py] Re: how to send data to the server with web2py_websocket

2013-08-01 Thread lyn2py
I am trying the websocket on google chrome and encountered this error: Uncaught TypeError: Property 'web2py_websocket' of object [object Object] is not a function I have followed the instructions. What could I be doing wrong? Thanks! On Friday, July 26, 2013 10:48:07 PM UTC+8, Massimo Di

[web2py] Re: how to send data to the server with web2py_websocket

2013-08-01 Thread lyn2py
I saw the console and there were these error messages, I thought it might help: 1375413960.5:MESSAGE to display:12 ERROR:tornado.application:Uncaught exception POST / (127.0.0.1) HTTPRequest(protocol='http', host='127.0.0.1:', method='POST', uri='/', version='HTTP/1.0',

[web2py] Re: how to send data to the server with web2py_websocket

2013-07-26 Thread Massimo Di Pierro
the basic idea of websocket is that input data must be validated by web2py therefore data can only be received from web2py. In your JS code you simply do: script