[Xerte-dev] Re: rss containing html5 links

Pat Lockley patrick.lockley at googlemail.com
Mon Nov 19 14:46:51 GMT 2012


within Xerte it makes sense as it only changes Xerte stuff.

There is a variable in the javascript called "last key pressed" or some such

There is a function called preview_window (it's the event handler for the
preview button) - it is in template_management or workspace management js -
so just say

If last key pressed is "control" then preview_html5

but I think the key state isn't tied to the action being control and click,
it is control was the last key pressed and click (which could be the same,
but not always)

Here is my logo suggestion

http://www.gifbin.com/984424



On Mon, Nov 19, 2012 at 2:42 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>wrote:

> Was about to replay saying...****
>
> ** **
>
> Or maybe replace the preview button with both a HTML5 logo and a Flash
> button? ****
>
>
> https://www.google.co.uk/search?q=html5+logo&aq=f&sugexp=chrome,mod%3D7&um=1&ie=UTF-8&hl=en&tbm=isch&source=og&sa=N&tab=wi&ei=bUGqUN3ZM4mZ0QXpw4Eg&biw=1416&bih=1274&sei=cUGqUIicAuel0QXOmIDIDg#um=1&hl=en&tbm=isch&sa=1&q=flash+logo&oq=flash+logo&gs_l=img.3..0l10.106370.107372.0.108220.5.5.0.0.0.0.110.340.4j1.5.0...0.0...1c.1.AHaEX3VT7uI&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&fp=c95efae25da229cf&bpcl=38625945&biw=1219&bih=809
> ****
>
> ** **
>
> but can hear the mumbles from the cave getting even louder and more
> grumbly ;-)****
>
> ** **
>
> In all seriousness as Julian added Ctrl _ Click play for html5 preview in
> the editor it seems to me it would be best if the same could happen for the
> preview button in workspace but others would know better than I if that's
> doable and how...****
>
> ** **
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 19 November 2012 14:32
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: rss containing html5 links****
>
> ** **
>
> *mumbles about modularity and not every module needing a html5 option*
> *goes back to cave*****
>
> ** **
>
> On Mon, Nov 19, 2012 at 2:27 PM, Smith, John <J.J.Smith at gcu.ac.uk> wrote:*
> ***
>
> Could we squeeze an HTML5 logo button in between “Preview”  and the
> divider?
> https://www.google.co.uk/search?q=html5+logo&aq=f&sugexp=chrome,mod%3D7&um=1&ie=UTF-8&hl=en&tbm=isch&source=og&sa=N&tab=wi&ei=bUGqUN3ZM4mZ0QXpw4Eg&biw=1416&bih=1274&sei=cUGqUIicAuel0QXOmIDIDg
> ****
>
>  ****
>
>  ****
>
> 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 Lockley
> *Sent:* Monday, November 19, 2012 2:24 PM****
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: rss containing html5 links****
>
>  ****
>
> it would "spoil" but it is also
>
> 1) Easy
> 2) Obvious to users what it does
> 3) Easy to remove when done****
>
>  ****
>
> On Mon, Nov 19, 2012 at 2:25 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> We already have preview_html5.php what I don't know how or where to
> achieve is detecting Ctrl + click on the workspace preview button to force
> html5 preview. Maybe there's a better way to do that but clearly there
> isn't really room for another button.****
>
>  ****
>
> If you're suggesting adding a preview_htlm5.php link to the bottom of
> peview.php? that would spoil the look of the Flash preview wouldn't it.***
> *
>
>  ****
>
> Going to park this for now but perhaps someone else can add whatever is
> required.****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 19 November 2012 13:33****
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: rss containing html5 links****
>
>  ****
>
> edit preview.php in modules xerte and add text at bottom?****
>
>  ****
>
> On Mon, Nov 19, 2012 at 1:34 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> not sure how to do that or more importantly how to detect the Ctrl click.
> Might have to leave that to someone else.****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 19 November 2012 13:19****
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: rss containing html5 links****
>
>  ****
>
> Why not just add a "preview in HTML / preview default" option at the
> bottom of preview?
>
> Seems neater?****
>
>  ****
>
> On Mon, Nov 19, 2012 at 1:20 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> might have been the play buttons in the main workspace****
>
> ah yeah I mentioned previously that I think the workspace preview button
> needs a similar function to what Julian has added to the editor e.g. hold
> Ctrl + click to preview html5 version. Not sure I can do that.****
>
>
>
> You could have a "click here to see more on RSS" which just opens the
> workspaceproperties page?****
>
> Will have a look at adding something like that...****
>
>  ****
>
> On Mon, Nov 19, 2012 at 12:48 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> Can you remember what it does? Perhaps someone else knows?****
>
>  ****
>
> Part of the problem is that the RSS tab already scrolls vertically because
> there are quite a lot of instructions. I wonder whether a short-term
> solution is just to add an instruction e.g. ****
>
>  ****
>
> The main feed is at http://vle.jisctechdis.ac.uk/xot/rss.php. This
> includes all content marked for inclusion from the site's users. Note: to
> share the html5 links rather than Flash links use
> http://vle.jisctechdis.ac.uk/xot/rss.php?html5 instead or simply append
> &html5 to the link below.****
>
>  ****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 19 November 2012 12:28
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: rss containing html5 links****
>
>  ****
>
> I can't remember where the JS is called.....
>
> I think the RSS tab should display a list of feeds that project is in****
>
>  ****
>
> On Mon, Nov 19, 2012 at 12:29 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> responses below...****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 19 November 2012 12:13****
>
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: rss containing html5 links****
>
>  ****
>
> I can't remember if there is a JS file, I tried to remember the other day
> but couldn't recall. It has been 2 years after all.****
>
> :-) well it seems to be working without any js changes and I guess in any
> case this is just in addition to what's already there at the moment rather
> than changes to core functionality so shouldn't break anything.****
>
>
>
> The RSS tab is about putting things into a feed, whereas the properties
> window is about that LO? So you could argue perhaps the RSS tab should have
> a "this LO is in the following feeds" list?****
>
>
> Yes probably but at the moment all I've looked to do is to enable the
> html5 rss links to work rather than decide where to display those links.
> However I think most XOT users only see the rss links via LO properties and
> the RSS tab as that's the properties panel they open most. It's only those
> who import projects that ever view the workspace properties panel and even
> then I'm not sure they ever visit the my feeds tab.****
>
>  ****
>
> On Mon, Nov 19, 2012 at 12:12 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> Well yes there are also rss links in workspace properties but for now I
> was concentrating on the rss tab of LO properties e.g. when an author
> selects an LO, clicks properties and visits the rss tab.****
>
>  ****
>
> url_library is one of the files I updated but I haven't updated an .js
> files - what js files need to be updated and why? Can you help with that
> Pat?****
>
>  ****
>
> I've only made changes to my local .htaccess so far (attached as a txt
> file) which is why I posed question 2.****
>
>  ****
>
> Ron****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 19 November 2012 11:58
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: rss containing html5 links****
>
>  ****
>
> Are they not in workspace properties?
>
> if you update .htaccess , or htaccess.conf, you also need to update
> url_library.php and one of the JS files****
>
>  ****
>
> On Mon, Nov 19, 2012 at 11:58 AM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> Hi all****
>
> I've been testing how to have the rss feeds display html5 links instead of
> flash links and have just committed some changes to enable this. ****
>
>  ****
>
> I discovered something I never knew before last week that appending
> ?export to the end of /rss.php changes the feed and links to show the LO's
> set for the export feed. So now with the changes I've committed appending
> ?html5 (or &html5 if there are other parameters like username and/or
> foldername) changes the links to play the html5 version rather than flash
> version. I think the RSS feeds become even more useful when it comes to
> mobile device consumption.****
>
>  ****
>
> I've uploaded these changes to the techdis install so for example:****
>
>  ****
>
> Normal rss feed: http://vle.jisctechdis.ac.uk/xot/rss.php****
>
> HTML5 version http://vle.jisctechdis.ac.uk/xot/rss.php?html5****
>
>  ****
>
> Likewise:****
>
> http://vle.jisctechdis.ac.uk/xot/rss.php?username=Ron_Mitchell****
>
> http://vle.jisctechdis.ac.uk/xot/rss.php?username=Ron_Mitchell&html5****
>
>  ****
>
> and also:****
>
>
> http://vle.jisctechdis.ac.uk/xot/rss.php?username=Ron_Mitchell&folder_name=tests
> ****
>
>
> http://vle.jisctechdis.ac.uk/xot/rss.php?username=Ron_Mitchell&folder_name=tests&html5
> ****
>
>  ****
>
> This raises a couple of questions:****
>
>  ****
>
> 1. Should these links or at the very least instructions be displayed in
> the RSS properties panel?****
>
>  ****
>
> 2. I've tested with apache set to true and had to obviously add additional
> lines in the .htaccess. I looked at adding these changes to htaccess.conf
> in the setup folder but that doesn't seem to have all the current links
> required even without the additional lines required for html5. Has anyone
> been keeping that up-to-date?****
>
>  ****
>
> Cheers****
>
> Ron****
>
>  ****
>
>  ****
>
>  ****
>
> 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
>
> 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
>
> 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
>
> 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
>
> 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
>
> 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
>
> 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
>
> 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
>
> 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
>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121119/a5d1280c/attachment-0001.html>


More information about the Xerte-dev mailing list