Re: UploadProgressBar does not work in Safari browser?

2010-08-16 Thread Wayne Pope
Does anyone know if any patches were submitted for this or does anyone
know of some code that can work?

We're finding more and more of our users are Chrome and Safari and its
becoming a pain. I have tried looking at this but my javascript
knowledge is beginner at best.

thanks for any help or pointers
Wayne

On Sat, Jul 4, 2009 at 9:46 PM, Mathias Nilsson
wicket.program...@gmail.com wrote:

 After dealing with this for a long time I desided to make my own servlet and
 AJAX communication and that works.
 It seams to be a problem for Safari, Chrome to make a GET request to
 resources/classpath. I don't see anything other than that that messes up
 the UploadProgressBar to work in all browsers.

 Also, there is a bug in the percentage width for safari and Opera. You could
 do this by changing the % width to pixels and solve the problem.
 --
 View this message in context: 
 http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p24337460.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



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: UploadProgressBar does not work in Safari browser?

2009-07-04 Thread Mathias Nilsson

After dealing with this for a long time I desided to make my own servlet and
AJAX communication and that works. 
It seams to be a problem for Safari, Chrome to make a GET request to
resources/classpath. I don't see anything other than that that messes up
the UploadProgressBar to work in all browsers. 

Also, there is a bug in the percentage width for safari and Opera. You could
do this by changing the % width to pixels and solve the problem.
-- 
View this message in context: 
http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p24337460.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



Re: UploadProgressBar does not work in Safari browser?

2009-07-03 Thread Mathias Nilsson

Sorry for bringing up and old thread but I got the exact same problem. Anyone
got this working on safari, chrome and opera?
I know that the UploadProgressBar uses it's own ajax request. Is it
something in the source code?

IE6 PC - Works
IE7 PC - Works
Firefox ( 3.5 ) PC - Works
Google Crome ( 2.0.172.33  PC- Not working. Progressbar not updated
Opera (9.64 ) PC - Browser hangs

Firefox MAC - Works
Safari (3.2.1) Mac - Not working. Progressbar not updated
 
HTML in UploadProgressBar should be changed. The last div should have
display: none; clear: left; otherwise it is not correctly displayed on all
browsers.

For now I have extended the UploadProgressBar and changed the html.

-- 
View this message in context: 
http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p24322943.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



Re: UploadProgressBar does not work in Safari browser?

2009-07-03 Thread Igor Vaynberg
patches are welcome

-igor

On Fri, Jul 3, 2009 at 6:12 AM, Mathias
Nilssonwicket.program...@gmail.com wrote:

 Sorry for bringing up and old thread but I got the exact same problem. Anyone
 got this working on safari, chrome and opera?
 I know that the UploadProgressBar uses it's own ajax request. Is it
 something in the source code?

 IE6 PC - Works
 IE7 PC - Works
 Firefox ( 3.5 ) PC - Works
 Google Crome ( 2.0.172.33  PC- Not working. Progressbar not updated
 Opera (9.64 ) PC - Browser hangs

 Firefox MAC - Works
 Safari (3.2.1) Mac - Not working. Progressbar not updated

 HTML in UploadProgressBar should be changed. The last div should have
 display: none; clear: left; otherwise it is not correctly displayed on all
 browsers.

 For now I have extended the UploadProgressBar and changed the html.

 --
 View this message in context: 
 http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p24322943.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



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: UploadProgressBar does not work in Safari browser?

2009-07-03 Thread Mathias Nilsson

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



Re: UploadProgressBar does not work in Safari browser?

2009-07-03 Thread Mathias Nilsson

Ok, a obvious bug in the code. We need to call createTransport( url ) again
in the setTimeout method.

Still, there is the chrome and safari bug.
-- 
View this message in context: 
http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p24330296.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



UploadProgressBar does not work in Safari browser?

2009-01-20 Thread techisbest

The UploadProgressBar does not seem to update in Safari Ver. 3.1.1 (525.17).

The bar shows up, but it never updates.

It is working in IE and Firefox.

Has anyone else experienced this?
-- 
View this message in context: 
http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p21571997.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