I
IramK
Guest
Hello, I am using multiple rbf_selectQuery2() functions client-side and I would like to know what the best way to use this would be. I understand that select query callbacks are asynchronous but, is there a way I could perform multiple queries within callbacks? rbf_selectQuery2("SELECT id from account where name like %google%", function accounts_callback(values) { for(var i = 0; i < values.length; i++) { rbf_selectQuery2("SELECT name, id, firstName, lastName FROM contact where accountId = " + values[0], function contact_callback(values2) { for(var j =0; j < values2.length; j++) { // get contact information } // After all the accounts are done and all the contacts are done, then I want this code to run ... }); } }); Best Regards, Iram
Continue reading...
Continue reading...