jquery - How do I get the browser to update before my next Javascript function is called? -


I'm having trouble getting the desired functionality from my function ... Actually, I'm calling two AJAX For the functions (as provided by Oracle Apex, I can not convert them) but they are taking a little while, the action was going on, so I wanted to show the standard AJAXy spinning gif but I do not have much luck. This is what I have so far:

{Limit: 'none', padding: '15px', background color: '# 000', 'webcat-border-radius': '10px', '-max-border-radius': '10px', ambiguity : .5, Color: '#FF'}}); // Two Axax calls are provided for APEX (var i = 0; i & lt; Report IDs.length; i ++) {$ a_report (reportIDs [i], RARRACKORD, ITEMS_PER_PAGE, ITEMS_PER_PAGE); } // Clean up some of the appacks garbage on page format page (); // Make a message "Please Wait" $ away.unblockUI; }

I think the typical problem at this time is that the UI bar only takes a while to complete the AJAX call. Again it never dismisses ... any thoughts? Wrap your AJAX in another method and delay the method 1 ms

  function (reportIDs, startRecord) ) {// Block to enter the UI and "Waiting" message for $ .block ({CSS: {limit: 'none', padding: '15px', background color: '# 000', ' WebCat-boundary-radius': '10px', '-max-border-radius':' 10px ', ambiguity: .5, color:' #ff '}}); Epix for setTimeout (function () {// / var i = 0; i & lt; Report IDs.length; i + +) {$ a_report (reportIDs [i], startRecord, ITEMS_PER_PAGE, ITEMS_PER_PAGE) Two AJAX provided Call;} // Clear some appacks garbage on page format page (); // The message "Please wait" $ away Unblock U ();}, 1); }  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -