synchronus read call

Dec 11, 2011 at 8:04 AM

Hi ,

I am creating my UI based on my data.js read operation response.

But i am facing issue when i am doing read call.

When i do read call,the response coming late and my UI start building but when the bind property executes ,it throws error as the response from the read operation is not yet reached,

So i want to make my call syncronus so that my ui start building only when my response in place or if you have any good idea then then kindly inform me.




Dec 12, 2011 at 6:51 PM

Hi Sudhanshu,

   Hope you are doing great.  Based on what you describe in your scenario you would probably need to trigger the initialization / creation of your response dependant UI from the success handler function.   You'll probably want to have some other piece of UI that shows up at the very beggining and letting the user know that your webapp is initializing, or loading while it is waiting for the response to come back.  Then in the success handler you can hide or completely remove the "Waiting" UI element and show the real UI with all its glory :).


Alex Trigo.