title: Is there a way to call a Return for a parent function from a child function in javascript?
body: <p>I am having a really peculiar case. I want to <code>return</code> some data - data that is downloaded via ajax. So far async &amp; sync modes don't get the data in time to the <code>return</code>. Is it possible I could either call <code>return</code> from a child function for the parent function or could a timeOut solve the issue? I can't think of another way of doing this, but the data must be returned.</p>