[Xerte-dev] Re: slideshow navigation within the text?

Fay Cross Fay.Cross at nottingham.ac.uk
Wed Oct 7 16:13:54 BST 2015


Hmm, it's the editor.

I'm not sure if this is a coincidence or whether this does fix it properly but try swapping around the ' and " in the javascript.
e.g. onclick="slideshow.panelChange($('pageContents')...
I can't break it with it that way around.

With ' first the editor seems to swap them initially to onclick="slideshow.panelChange($("#pageContents")... and then the next time you edit the page it strips the code


From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 07 October 2015 15:57
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: slideshow navigation within the text?

spoke to soon :-(

It works at first but then the code gets stripped and no longer works. Not sure if that's just the editor or xenith.js but for instance after further edits the code that does work gets changed:

[cid:image001.jpg at 01D1011A.C0206120]

Not sure there's any way to prevent that?
Ron


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 Ron Mitchell
Sent: 07 October 2015 14:01
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: slideshow navigation within the text?

Thanks Fay
that's really useful. I had one bit of the syntax wrong :-(
Cheers
Ron

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 Fay Cross
Sent: 07 October 2015 13:41
To: For Xerte technical developers
Subject: [Xerte-dev] Re: slideshow navigation within the text?

You can add those lines of code from the model to a normal link in the text
e.g. This works: <a href="javascript:void(0);" onclick='slideshow.panelChange($("#pageContents").data("currentPage") - 1);'> Previous </a>

You'd still have the default buttons but you could probably hide these too if you wanted to override the way it normally works completely

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 Ron Mitchell
Sent: 07 October 2015 12:59
To: 'For Xerte technical developers'
Subject: [Xerte-dev] slideshow navigation within the text?

Hi all
quick question...
On a slide show page is there a way I can add navigation to a text or graphic element e.g. next >> which replicates the model code e.g.
.click(function() { slideshow.panelChange($("#pageContents").data("currentPage") + 1);
and likewise:
.click(function() {slideshow.panelChange($("#pageContents").data("currentPage") - 1);
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.







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/20151007/54f38b6b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 34692 bytes
Desc: image001.jpg
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20151007/54f38b6b/attachment-0001.jpg>


More information about the Xerte-dev mailing list