[Xerte-dev] Re: Mac Safari browser bug

Smith, John J.J.Smith at gcu.ac.uk
Wed Jun 12 11:53:14 BST 2013


Not sure but I found the correct section of code…

                                listener.onSelect = function(file:FileReference):Void {

                                                //create a modal window
                                                this.progWin = PopUpManager.createPopUp(wizard, mx.containers.Window, true, {_x:325, _y:200, closeButton:false, title:'File Upload'});
                                                this.progWin.createClassObject(ProgressBar, 'prgBar', 20, {_x:25, _y:40, mode:'manual', minimum:0, maximum:100});
                                                this.progWin.createClassObject(Button, 'btnCancel', 21, {_x:50, _y: 80, label:wizard.languageData.importMedia[0].btncancel});

                                                this.click = function(evt){
                                                                this.fileRef.cancel();
                                                                this.progWin.deletePopUp();
                                                }
                                                this.progWin.btnCancel.addEventListener('click', this);
                                                this.progWin.setSize(200,130);

                                                url = _root.upload_path + _root.rlovariable;

                                                //handle sesion ins firefox and safari for security
                                                var id = ExternalInterface.call('getSessionID');

                                                file.upload(url + '&' + id);

                                };

So the file upload is handled differently from the save file routine…


Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
Sent: Wednesday, June 12, 2013 11:45 AM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Mac Safari browser bug

Do you need to set an encoding type in the flash?

On 11 Jun 2013, at 15:48, "Smith, John" <J.J.Smith at gcu.ac.uk<mailto:J.J.Smith at gcu.ac.uk>> wrote:
Hi,

Anyone out there with the ability to debug the wizard who is using a Mac?

This bug has been floating around now for a while now and I thought it was related to the Firefox Cookie bug but it doesn’t appear to be… and ii’ve been able to reproduce it here…

Anyway, when you try to upload media in any browser other than Safari the file is POSTed to the script upload.php and this php file tries to write the data to server disk… If you monitor the Network in the Developer Tools or Firebug then you see the file upload.php appear…

If you try to do this in Safari though then upload.php never appears so doesn’t appear to be POSTed to… if you press the little magnifying glass to preview the image then file_exists.php fires in both Safari and every other browser… strangely enough - if the file is very large then you get the progress bar which gradually increases as if the data is being sent….

Anyone have any idea why the wizard doesn’t appear to POST to upload.php in Safari?

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

From: Graham Bell [mailto:graham at editeur.org]
Sent: Friday, May 31, 2013 12:32 PM
To: Smith, John
Subject: Re: [Xerte] FW: Xerte (nice example and a browser bug report)

Hi John -- not sure how I find the version of Xerte -- it's provided to us by Alastair. I'll take a look at the console when I get a chance (next week, as I'm travelling at the moment).

Graham


Graham Bell
EDItEUR

Tel: +44 20 7503 6418
Mob: +44 7887 754958

EDItEUR Limited is a company limited by guarantee, registered in England no 2994705. Registered Office: United House, North Road, London N7 9DP, UK. Website: http://www.editeur.org






On 31 May 2013, at 07:15, Smith, John wrote:



Hi Graham,

I’ve had a look into this and I can’t replicate it. I too am using Version 5.1.9 (6534.59.8) and it works as expected, not really sure why yours wouldn’t. Are you using v2.0 of XOT or an older version?

Also, do you see any error messages in the console  when you do this?

•         Preferences --> Advanced, Check "Show develop in menu bar"
•         Menu-->Develop --> Show Web Inspector

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

From: Graham Bell [mailto:graham at editeur.org]
Sent: Monday, May 20, 2013 12:15 PM
To: Smith, John
Subject: Re: [Xerte] FW: Xerte (nice example and a browser bug report)

Hi John

I can easily replicate if I have to, but as I remember, the issue occurred when I tried to add an image to any of the pages.

Using any page template that allows you to add an image (for example the 'advanced image' page template, you click the [...] button and it opens a window that allows you to select an image file (typically JPEG or PNG). When you choose the file, a small upload progress window opens, followed by a window that says 'Success'. You can dismiss this, and the filename of the image is displayed. You can then use the magnifier icon (image inspector) to preview the image.

When using Safari (version 5.1.9), all goes as expected except that the upload progress happens too quickly. The filename appears, but clicking on the image inspector icon does not display the image -- it gives you an error that says 'you must select media before you can preview it'. Essentially, the image has not been uploaded. The screenshot attached shows the result of clicking the Image Inspector icon with an image that has been 'uploaded'.

Safari CAN preview images that have been uploaded previously on a PC, or via another Mac browser, and images 'uploaded' with Safari CANNOT be previewed with another browser, so the problem is not with the image inspector itself.

Now it has to be admitted that v5.1.9 of Safari is not the 'latest and greatest', but it's still reasonably common as the latest that can be run on the previous iteration of Mac OS X (Snow Leopard). I guess before you investigate further, you should try it out on current Safari on Mountain Lion.


Regards
Graham


Graham Bell
EDItEUR

Tel: +44 20 7503 6418
Mob: +44 7887 754958

EDItEUR Limited is a company limited by guarantee, registered in England no 2994705. Registered Office: United House, North Road, London N7 9DP, UK. Website: http://www.editeur.org







On 17 May 2013, at 21:59, Smith, John wrote:




Hi Graham,

Just following up on Alistair's email as I didn't get a reply, but I sent it back to the list...

I'll investigate this for you, I don't often use Safari but haven't noticed any issues when i have, although this hasn't been recently.

Can you tell me if its the upload button in the Flash wizard or the media upload button in the properties panel? And what is it that doesn't work? Do you get the file system popup? Can you choose a file? What happens once you've selected the file?

I suspect it might be session related, similar to the Firefox/Flash bug that took us a while to fix, but if it is this then it should be easy to implement a fix for Safari.

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



Alistair McNaught <Alistair.McNaught at HEAcademy.ac.uk<mailto:Alistair.McNaught at HEAcademy.ac.uk>> wrote:


A colleague of mine has been working on this metadata LO – http://vle.jisctechdis.ac.uk/xerte/play_281

He wanted to report back an issue with Safari on a Mac. Highlighted below.

Any other Mac/Safari  users experienced this?

A

From: Graham Bell [mailto:graham at editeur.org]
Sent: 12 May 2013 16:19
To: Alistair McNaught
Subject: Xerte

Hi Alistair

Just another quick report on Xerte for the developers. I found the upload functionality for images and audio does not work in Safari -- but does work in Chrome on my Mac.

Now I've finished off the LO on metadata (let me know what you think!), I might have a go with the Toolkits tool. The LO was originally written as a single HTML5 page, so might well be suited.

Graham






Graham Bell
EDItEUR

Tel: +44 20 7503 6418
Mob: +44 7887 754958

EDItEUR Limited is a company limited by guarantee, registered in England no 2994705. Registered Office: United House, North Road, London N7 9DP, UK. Website: http://www.editeur.org<http://www.editeur.org/>





This email is confidential and may be privileged. If you are not the intended recipient please accept our apologies. Please do not disclose, copy, or distribute information in this email nor take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Please note that views expressed in this email are those of the author and do not necessarily represent those of the Higher Education Academy. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Although we have taken steps to ensure this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. The Higher Education Academy Registered No 4930131



Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html



<image002.png>

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html


Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev


This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.


Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130612/19216c73/attachment-0001.html>


More information about the Xerte-dev mailing list