Persits Software, Inc. Knowledge Base Articles

Progress bar in IE for Macintosh

Problem Description

The progress bar does not appear on Macintosh clients running Internet Explorer 5+.

Solution

The original code sample included with AspUpload version 3.0.0.3 does not account for Mac IE. Use the updated code sample for progress.asp available for download here:

http://support.persits.com/upload/progress.asp

The original script uses window.showModelessDialog which is a method proprietary to MSIE for Windows. Your script must use window.open for Macintosh machines as follows:

strAppVersion = navigator.appVersion;
if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) { if (strAppVersion.indexOf("Macintosh") != -1 && strAppVersion.charAt(0) >= 3 ) { window.open('<%=barref%>&b=NN','','width=370, height=115', true); } else { winstyle="dialogWidth=375px;dialogHeight:130px;center:yes"; window.showModelessDialog('<%=barref%>&b=IE',null,winstyle); } } else { window.open('<% = barref %>&b=NN','','width=370,height=115', true); }