For your first question, what you could do is, inside your event or
command on the server:

var sqlFinished = false;
var sqlResult = null;
sql.query(statement, function(result){
sqlResult = result;
sqlFinished = true;
})

while(sqlFinished === false)
{
//waiting loop
}
//now work on sqlResult

Ugly but could work. However I would advise against going synchronous,
in my experience js is made to work asynchronously, and every time I
tried to went against that it ended up badly :)

For your second question I did not have the issue myself yet, so
cannot really help, sorry.

Cadrach

On Jan 15, 11:46 am, nouknouk <[email protected]> wrote:
> Nobody ?
-- 
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