From reading about this here, https://groups.google.com/forum/?fromgroups=#!topic/google-ajax-search-api/1DxzKw5mzOY, I've found that there's no way to make it synchronous. The only other solution I've thought of so far was to make the loop wait before making an increment by using the setTimeout method: http://www.w3schools.com/jsref/met_win_settimeout.asp
I've also changed the loop just to work with the day var now rather than I so it's:
for (day = 1; day < 30; day++) {
So will the issue be resolved today? No, because there's no time left in this period but hopefully everything can be fixed easily tomorrow.
No comments:
Post a Comment