Hey guys, Going synchoneously on aAPE server will just stop everithing else until sql request ends, you'll exeriment lags on all other responses and messages.
if you use APE Server only for this raw, it's cool, but if you have other concurent raws, they will just stop until you loop is finished. Have a nice day --------------------------------------------------------------------------------------------- Hugo Vacher, Développeur Web 2010/1/15 Cadrach <[email protected]> > 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]<ape-project%[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/ > >
-- 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/
