[Xerte-dev] Re: Mac Safari browser bug

Smith, John J.J.Smith at gcu.ac.uk
Wed Jun 12 10:42:35 BST 2013


Looks to me like that _blank is being accessed after upload.php has returned a result (onLoad) but then not sure what the line:

wizard.getURLHelper.getURL(wizard.nfoObject.wizard.runtime, "_blank", "POST");

is doing since it is still referencing POST also...

Not really sure where we go with this or whether we even spend a lot of time trying to fix it... is a high enough proportion of people using Safari?

If you have time and want to still in a few debug statements then I'll take another look at it. Can you send data to the console easily from Flash? Just stuff like "File sent", "onLoad fired" "Returned data:..." or whatever you think would help...

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 Julian Tenney
Sent: Wednesday, June 12, 2013 10:32 AM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Mac Safari browser bug

It's done like this:

if(!xerte){
           if(_root.read_and_write=="true"){
                var result_lv:LoadVars = new LoadVars();
                var send_lv:LoadVars = new LoadVars();
               send_lv.filedata = wizard.xmlStr;
                send_lv.filename = wizard.fileName;
                send_lv.fileupdate = update; //update the play_XXX file or not?
                send_lv.filesize = wizard.xmlStr.length;
                send_lv.sendAndLoad(_root.savepath, result_lv, "POST");

                results_lv.onLoad = function(success:Boolean){

                     wizard.createEmptyMovieClip('getURLHelper', 9999);
                     wizard.getURLHelper.data = KOData.format();

                     wizard.getURLHelper.getURL(wizard.nfoObject.wizard.runtime, "_blank", "POST");

                }

           }
     }else{

The _blank is for the preview window (I think?)

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 12 June 2013 10:23
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Re: Mac Safari browser bug


Hmm interesting. Anyone know if this is the likely cause? Does the wizard post the data to a _blank target?

Can this easily be changed to post somewhere else, possibly a hidden iframe or new window?

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



Dave Burnett <d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>> wrote:

What's the target?

"no, everything works in other browsers. I just fixed this though by first opening a window with javascript and then submitting the form to that window. safari doesn't like the _blank for some reason - user740521<http://stackoverflow.com/users/740521/user740521> Apr 5 at 20:41<http://stackoverflow.com/questions/15842043/php-post-array-empty-after-form-submit-on-safari-using-yii-framework#comment22543805_15842043>"





________________________________
From: J.J.Smith at gcu.ac.uk<mailto:J.J.Smith at gcu.ac.uk>
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Date: Tue, 11 Jun 2013 15:48:33 +0100
CC: graham at editeur.org<mailto:graham at editeur.org>
Subject: [Xerte-dev] Mac Safari browser bug
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<http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name%2c6219%2cen.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<http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name%2c15691%2cen.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<http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name%2c6219%2cen.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<http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name%2c15691%2cen.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

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.


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/176bab6a/attachment-0001.html>


More information about the Xerte-dev mailing list