I've been working with the demos and examples for the past four days without any problems. They work just as expected. Now I'm working on my own and I'm currently having difficulty with the server-side JavaScript and getting the server to initialize or use a range of variables and objects as described in the documentation.
Of note, I'm trying to get the MySQL Object working. I've been tinkering with the example provided at : http://flip.netzbeben.de/2010/01/howto-create-a-web-chat-with-ape-rails-and-mysql/ While I've had to make a few modifications since I am working in PHP not Rails (Plus I wanted to remove the SQL as a possible issue), I cannot get this sql query function to execute. sql.query("SELECT * FROM test_table WHERE user_id = 1", function(res, errorNo) { if (errorNo) sqlResult = "requested and failed"; else "requested and complete"; }.bind(this)); While the request does not cause an error, either in the terminal or through the Ape.Log, it seems to ignore the callback block of code entirely. I'm at a loss as to how to debug this without any return from the server. My server deals with tens of thousands of requests per hour and there is no way for me to tell through the MySQL log, even tell if the request was made. ---- Also The other issue I'm having is with the variable/objects of param, cmd, infos. While I see them liberally used through out the examples and utility scripts, every attempt at my own use of these objects results in a "/var/ape//my.ape.js:60:TypeError: params is undefined" when I try to include them in the variables passed to the functions. I was under the impression that the objects were global, or at least within the scope of Ape. I have also had instances, when trying to log information, gotten the error: "/var/ape//my.ape.js:32:TypeError: Ape.Log is undefined". I'm at a loss as how the Ape.Log function could be out of scope with the rest of the code. Thank you for any help that you can provide. -Mike -- 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/
