Search Persits Software Knowledge Base

 

Article PS030716109

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); }

Created: 7/16/2003 1:03:48 PM
Last Modified: 7/17/2003 11:38:03 AM

Copyright © Persits Software, Inc. 1998 - 2018
For technical support, write to support@persits.com.