[Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Fay Cross Fay.Cross at nottingham.ac.uk
Wed Nov 28 12:53:41 GMT 2012


I think it would probably be best if an error message did appear on screen somewhere.  Maybe just below the image or at the beginning of the text field.  Something along the lines of 'Your browser does not fully support this page type'?

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 28 November 2012 12:45
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Ah i didn't know about the console.log issue in IE... Since IE falls back to html4 just now and thus 11 of the 15 types don't work then the 11 non working ones simply write a message to the console since i didn't really know how to handle that. We can take them all out but then should a message be placed in the text area or somewhere else to say that a particular type hasn't been handled? Or should we just gracefully ignore the non working ones...

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



Fay Cross <Fay.Cross at nottingham.ac.uk> wrote:


Yep, I have IE8 and it was all ok when I was just testing on the ltdev.nottingham site but as soon as I including it in toolkits properly and ran in xampp or Nottingham's Toolkits install a lot of the css messed up in IE. I will try and look at a way around forcing to IE8 at some point but I just needed a quick fix initially.


For the textDrawing problem in IE, is there a console.log message in the code? If I forget to remove them from a model the page doesn't work in IE (unless the developer window's open).


-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 26 November 2012 16:30
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Hi John
yes I definitely had cleared cache but just tried again and still no joy. So then I had another look at your screenshot and noticed you had the console running so I turned on developer tools and switched to the console too - now bizarrely I'm seeing page 2!

So it seems fine now although as you say defaulting to IE8 compatibility. I think Fay put that line in the top of play_html5.php because of issues with compatibility mode in IE9.

Cheers
Ron

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 26 November 2012 15:49
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Hi Ron,

Are you sure you cleared the cache? I can see page 2 in IE but it does a poor job in this instance since it falls back to the available HTML4. I have to ask Fay if there is a reason that we are forcing IE8 compatibility in Xenith because we'll never be able to make use of <canvas> in IE9.

Have attached a screenshot of how page 2 appears for me...

Regards,

John Smith | Learning Technologist
Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA

________________________________
From: xerte-dev-bounces at lists.nottingham.ac.uk
[xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell [ronm at mitchellmedia.co.uk]
Sent: 26 November 2012 15:13
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Hi John
your updated file is in place now - seems to have fixed the Chrome issue but still not seeing page 2 in IE even after clearing cache etc.
Same links apply
View the flash version
http://vle.jisctechdis.ac.uk/xot/play.php?template_id=150
View the html5 version
http://vle.jisctechdis.ac.uk/xot/play_html5.php?template_id=150 page 2 is empty HTH Ron

From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 26 November 2012 14:53
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Hi Ron,

Thanks for that, you managed to choose the worst text string possible!!
Usually you need to be very careful about using parseInt or Math.round to convert strings to numbers when you do calculations in JavaScript. This time though I was using .split(' ') on the passed in text string but JS was very unhelpfully just casting the text to a number and then it obviously couldn't find the .split method.

I've fixed it in SVN now and it seems to be working please try that if you get a moment and see if it's fixed.

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.nott
ingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: Monday, November 26, 2012 10:45 AM
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Yes I do mean that window and as I said anecdotally I don't remember this ever happening prior to 1.8 and it's not consistent now, but on occasions the browse window has appeared below other windows.

BTW John - I hadn't updated the Techdis install with the html 5 model until now and there seems to be some odd stuff going on...
e.g. In IE9 via the html5 version I see page 1 & 3 but not page 2 View the flash version http://vle.jisctechdis.ac.uk/xot/play.php?template_id=150
View the html5 version
http://vle.jisctechdis.ac.uk/xot/play_html5.php?template_id=150 page 2 is empty

In Chrome it's the reverse I see page 2 but not 1 & 3 Same in Firefox and Safari

HTH
Ron

From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 26 November 2012 10:21
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

You mean the native windows browse file dialog? It's not to the front? I've never even thought you could control it, I thought it was always to the fore (and modal?)

From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 26 November 2012 10:22
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

Hi John
I just tested this and shared the file with your account on the Techdis install.
I can't make it lose any lines etc and importing an image works fine too.
e.g.
http://vle.jisctechdis.ac.uk/xot/play.php?template_id=150
page 1 I created as a test file for you previously, page 2 I just created.
All seems to work fine.

Having said that except for a more general point not unique to this page type that I've noticed recently and this is anecdotal rather than 100% certain..

I'm fairly sure that previously (pre 1.8) when using a page type that allowed for browsing and uploading media the browse window always appeared on top of all other windows. Now the browse window often appears below the editor window and so can easily be missed. I'm not sure if this is a client issue e.g. when using IE I'm now using IE9 rather than IE8. I don't have time to test this theory with other browsers at the moment but is it possible that when you've been testing adding an image the browse window has been behind others?

HTH
Ron

From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 26 November 2012 09:56
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

AFAIK, the code in the DRAW class hasn't changed, nor has the code in the drawing editor? At least, I've not changed it.

From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 25 November 2012 19:57
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Problem with textDrawing (Flash) page in XOT

the drawing app uses some shared object jiggery pokery right?

On Sun, Nov 25, 2012 at 7:55 PM, Smith, John <J.J.Smith at gcu.ac.uk<mailto:J.J.Smith at gcu.ac.uk>> wrote:
Hi,

Further to my last message about the image button not working, now there is a more serious problem with things disappearing. If you draw some lines and then go to 'Save Drawing' on the menu the last 1 (or few) of the lines that were drawn just disappear! Can anyone else replicate this? It's only been doing this recently so i'm assuming its due to one of the recent updates that one of you did and that someone will know where the problems lie?

Regards,

John Smith | Learning Technologist
Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA

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,e
n.html
_______________________________________________
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,e
n.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,e
n.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
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
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

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



More information about the Xerte-dev mailing list