Cool, thanks.
I will be sure to look into this.

I was trying to mess around with APE and MySQL but I have a problem,
there was another APE user on the irc chat who had a similar problem.
We are both using the git version.

I did my best to copy and paste the mysql tutorial out of the APE wiki
but it does not work.
This is the command that gets sent:
[{"cmd":"getInfo","chl":3,"params":
{"user":"efyx"},"sessid":"a1d78b4ae966c751ae6cd1c63c956186"}]
and this is the server's response:
[{"time":"1301588831","raw":"ERR","data":{"chl":
3,"code":"003","value":"BAD_CMD"}}]

this is my clientside code:
window.addEvent('domready', function(){

                        var client = new APE.Controller({
                                container: $('apeControllerDemo')
                        });

                        client.load({
                                identifier: 'action',
                                channel: 'testchannel'
                        });

                        client.addEvent('load', function() {
                                client.core.start({'name': '' + Date.now() + 
''});//
Start with a random name
                        });

                        client.addEvent('ready', function() {
                                //send getInfo command
                                client.core.request.send('getInfo', {'user': 
'efyx'});

                                //onRaw info callback
                                client.onRaw('info', function(params) {
                                console.log(params);//Log params in JavaScript 
Debugger's console
                                });
                        });

                });

and my server side script is the exact same (i changed the MySQL
connect params only) as can be found here:
http://www.ape-project.org/wiki/index.php/Serverside_js_module_using_MySQL.

Also, with APE set to not run as a daemon, in the shell terminal where
I ran APE I get the error:
../scripts/apeMysql.js:2:TypeError: Ape.MySQL is not a constructor.

The Firebug console informs me that upon loading the page it tries to
post the command 4 times, 3 times it returns the bad_cmd and the
fourth time the request gets aborted.

Also note, I am trying to do this on a page that is also running an
inline push. That is why there is a bit of extra code in the script. I
dont think that the inline push is interefereing with the MySQL but I
know that the MySQL is interefereing with the inline push, possibly
though only because it won't work and I'm hoping that once the MySQL
works the inline push will go back to working as it should.

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to