Michael BW
Michael BW

Reputation: 1070

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 processImages 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?

Upvotes: 0

Views: 167

Answers (1)

Khez
Khez

Reputation: 10350

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...

Upvotes: 1

Related Questions