I don't get it.. I have made a call to the javascript function here from progressbar but the UploadWebRequest always returns |0|0|0|0 for Opera, chrome . This simple javascript should be sufficient. In safari the updateProgressBar() is not called at all.
var request = null; function createTransport( url ){ try { request = new XMLHttpRequest(); } catch (trymicrosoft) { try { request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (othermicrosoft) { try { request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (failed) { request = null; } } } request.open("GET", url+'?anticache='+Math.random(), true); request.onreadystatechange = updateProgressBar; request.send( null ); } function updateProgressBar(){ if( request != null ){ if( request.readyState == 4 ){ if( request.status == 200 ){ var update = request.responseText.split('|'); var completed_upload_size = update[2]; var total_upload_size = update[3]; var progressPercent = update[1]; var transferRate = update[4]; var timeRemaining = update[5]; alert( completed_upload_size + ":" + total_upload_size + ":" + progressPercent + ":" + transferRate + ":" + timeRemaining ); window.setTimeout( updateProgressBar(), 1000); } } } } -- View this message in context: http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p24330156.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org