...

View Full Version : displaying div before ajax javascript



madhur
08-25-2011, 08:50 AM
I have to display a div before firing a sync ajax in javascript
div is getting displayed in firefox but not in IE and chrome.

I need to basically display a download bar to indicate the user that the request is in progress

devnull69
08-25-2011, 09:46 AM
Generally, if you want to make sure that information is being displayed before starting a sync action, you'll have to give the render engine time to do so. This can be achieved using setTimeout with a short delay.

Something in the lines of


window.setTimeout(startSyncAjax, 50);

function startSyncAjax() {
// perform the sync Ajax action here
}

madhur
09-01-2011, 07:25 AM
thanks devnull69 ,
I have tried this.. this is showing the progress bar but the download is getting blocked in IE (download information status bar is coming)
Is there any other way of displaying progress bar during downloading when server processing is taking long time

devnull69
09-01-2011, 11:42 AM
No because you said the request is a synchronous one. A synchronous Ajax request will always block / freeze the browser until it is finished.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum