Displaying function progress in IE
$("#processorTeam").click(function(e) {
$("#processingDialog").dialog().html('Processing Started')
var funcCall = processImages(e);
})
This code initiates a jQueryUI dialog box, populates the text with 'Processing Started', and then runs the proce开发者_开发百科ssImages function.
In Firefox and Chrome, the dialog box displays before the processImages function runs, and then displays status messages during the running of the processImages function.
In IE, the dialog box doesn't display until the processImages function is completed. At that time it also shows all the status messages that were sent during the running of the processImages function.
Is there a way to do this work in IE7 & IE8 like it does in Firefox?
Hmz... a quick fix to this would be a small timeout
$("#processorTeam").click(function(e) {
$("#processingDialog").dialog().html('Processing Started')
setTimeout(function(){var funcCall = processImages(e);}, 100);
})
Could work :-? lemme know what changes, if anything...
精彩评论