Hi,

Regarding custom commands and raws, how can I retrieve the data passed 
inside writeData function in http.js? 

Here's a basic code example on what I'm wondering about:

*Server side*
Ape.registerCmd('testcmd', true, function(params, cmd) {

        var request = new Http('http://ape.mysite.net/something');
        request.set('method', 'POST');
        request.writeData('msg', + message);
});

*Client side*
pipe.request.send('testcmd', {'message': 'My message, blablabla'});

*something (php)*
<?php
 $message = $_GET['message'];
 echo $message;
?> 

how can I retrieve the data from the Http request from ape server?? 
Additionally, I would like to insert the data into a mysql table and then do a 
select * from at the same time to load into a div element on a html page.

https://github.com/APE-Project/APE_Server/blob/master/scripts/framework/Http.js

Could anyone guide me on this on please, Thanks!

-- 
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