I've bought and got XUpload 2.2 working - it's great!
However, Safari will not display the inline graphics. It does upload the files but the user has no idea what is happening until the file has uploaded.
Also, when choosing a pop-up window, the pop-up immediately goes to the back of the main window so it's possible that the user will not notice it and again wonder what is happening.
This can be seen on your demo's as well.
Does anyone know what needs to be done to reveal the inline graphics?
XUpload - Inline windows and Safari
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Yea, had this problems some times. This is a browser problem. But I think we have a solution. Find this string in xupload.js:
and change "about:blank" to filename containing HTML with images inside like
this will cache images for that inline frame.
Code: Select all
<iframe src="about:blank"
Code: Select all
<HTML><BODY>
<img src="http://..../img1.jpg">
<img src="http://..../img2.jpg">
...
</HTML></BODY>
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Ah, probably I didn't get your point. I thought you meant images for graphics. I guess you meant progress bar not showing till the end of transmission.
That's the Safai little problem - it not refreshing content till get another 4kb data chunk. I've played with XUpload in Safari and made some hacks for it:
for pop-up focus: in upload_status.cgi add this string next line after "print $t->output;"
for correct refreshing: in upload_status.cgi change this string
to
Please report if this will help. I've tested this in Safari 1.3.2
Updated our demo on original XUpload page too.
That's the Safai little problem - it not refreshing content till get another 4kb data chunk. I've played with XUpload in Safari and made some hacks for it:
for pop-up focus: in upload_status.cgi add this string next line after "print $t->output;"
Code: Select all
print"<Script>window.focus();</Script>";
Code: Select all
print"<Script>SP('$size',$time,$speed,$files_uploaded,$time_left);$speed_str</Script>"
Code: Select all
print"<Script>SP('$size',$time,$speed,$files_uploaded,$time_left);$speed_str</Script>".' 'x4100;
Updated our demo on original XUpload page too.
I'm using Safari 2.04
The pop-up fix works OK (as does the Inline1).
The Inline2 (i.e. displaying within the table) doesn't and unfortunately this is the one we're going to be using.
On clicking the Upload button, it goes straight to the redirect_link url and does not pass the filename (nor uploads the file!). This is the same on my own website and your demo.
I get the impression Safari can be a bit of a nuisance at times, but unfortunately a lot of our clients from the Print/Design trade will be using it.
Thanks
The pop-up fix works OK (as does the Inline1).
The Inline2 (i.e. displaying within the table) doesn't and unfortunately this is the one we're going to be using.
On clicking the Upload button, it goes straight to the redirect_link url and does not pass the filename (nor uploads the file!). This is the same on my own website and your demo.
I get the impression Safari can be a bit of a nuisance at times, but unfortunately a lot of our clients from the Print/Design trade will be using it.
Thanks
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Thanks for reporting the problem. It took me a while to make it work in Safari(kinda strange browser), now working the same in IE,FireFox,Opera,Safari.
Here's the fix:
in upload_form.html replace line "<iframe src="about:blank" id="progress..." with
Aslo here's fixed xupload.js: http://sibsoft.net/test/xupload.js
Tested in Safari 1, hope it will work in 2 too.
Here's the fix:
in upload_form.html replace line "<iframe src="about:blank" id="progress..." with
Code: Select all
<div id="progress2" style="position: absolute; left: -999px;"><iframe src="about:blank" id="progress2f" name="transfer2" border=0 SCROLLING=NO topmargin=0 leftmargin=0 frameborder=0 style="width: 395px; height: 260px;"></iframe></div>
Tested in Safari 1, hope it will work in 2 too.
Well, it almost works..... inline2 (show in table) now displays the upload correctly in Safari 2.04 but the stop button does not stop the upload (this is the same on your demo).
Not a major problem as it the user can click the browser's Stop button but it's not ideal!
I also notice that the display for Explorer 5.2 (Mac) is a bit flaky, the numeric info (amount uploaded, time etc) appear briefly then vanish until the next refresh. Again, not a major problem as you can see the progress bar but not ideal.
I tried the fix you put in the other topic ("if (navigator.appVersion.indexOf("Mac")>0 && navigator.appVersion.indexOf("MSIE")>0)return;") but it doesn't seem to make any difference.
Not a major problem as it the user can click the browser's Stop button but it's not ideal!
I also notice that the display for Explorer 5.2 (Mac) is a bit flaky, the numeric info (amount uploaded, time etc) appear briefly then vanish until the next refresh. Again, not a major problem as you can see the progress bar but not ideal.
I tried the fix you put in the other topic ("if (navigator.appVersion.indexOf("Mac")>0 && navigator.appVersion.indexOf("MSIE")>0)return;") but it doesn't seem to make any difference.