Hi, Lately after getting mysql to work with Ape I have been facing a problem..
Basically I have my login system hooked to Ape, I pass the usernick and some user level setting tru session and then send them to Ape server side and set properties , this approach works nicely but there is some catch to it... The setting are passed from php to javascript, this of course can be seen in the source, I dont want to show how I am setting user properties.. Then I have mysql working and instead to passing it from php to javascript I can access the user properties in mysql database, but the problem is that at the moment where the user land (page) and because mysql call is asynchronous the user is set only with his nick and not with the properties checked in database.. The problem is that the user land too fast in the page in client side and in server side the code ran but hasn't set the properties just jet.. A reload to the client side shown that the user properties were set and checked against database but again the latency in the Asynchronous is too much.. How would I go make the code in server side to tell Ape client side to not fire the event 'ready' until the callback from Mysql its done and all user properties are set properly? I think Ajax Asynchronous idea is more difficult to grasp than any other thing overall. Again Thanks for help me out.. UTAN -- 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/
