Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-21-2015, 08:48 AM   #1
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Conditional reverse links? (depending on path)

I'm creating a book where I would like to return from the end of a chapter (xhtml file) to the page that got me there (by link). Is that possible?


What I am doing is this:

- Subject area A
--- Chapter X
--- Chapter Y
- Subject Area B
--- Chapter Z
--- Chapter X (same as the above X, duplicate in listings, uniqe in actual xhtml-file)


Each "Subject" page has a list of chapters. Some chapters can be in more than one Subject. All chapters are unique and has nothing to do with each other.

After reading a chapter, I would like to return to the Subject page I started from.
patrik is offline   Reply With Quote
Old 01-21-2015, 11:11 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I don't think it's possible without scripting.
Jellby is offline   Reply With Quote
Advert
Old 01-21-2015, 11:17 AM   #3
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
As Jellby said, this cannot be done without scripting.
The first request you can accomplish by adding doing this:
<a href="javascript:history.back();">Back</a>
odedta is offline   Reply With Quote
Old 01-21-2015, 12:28 PM   #4
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Ok, thanks.

Is javascript available in todays epub 2-readers or is that a epub 3 feature? (I googled a bit but found mostly hits in epub 3 docs.)

Edit:
Just tried this on my Kobo Aura HD, nothing seems to happen. Do I need to do something else to get scripting to work, or is it not yet available?

Edit 2:
Looking at http://epubtest.org/ it seems Kobo is not supporting much of javascript....

Last edited by patrik; 01-21-2015 at 12:43 PM. Reason: added info
patrik is offline   Reply With Quote
Old 01-21-2015, 12:47 PM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Scripting is not supported in ePub 2. Some readers have a back button but many do not. ePub 3 does support scripting but there are only a few ePub 3 readers available.

If there is a finite number of cases for this you could have multiple links to do the return and the user could then select the one they wanted.

Dale
DaleDe is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different columns depending on Virtual Library cryzed Library Management 4 05-26-2014 03:46 PM
PRS-350 About the epub custom font path And how to know the path? 52manhua Sony Reader Dev Corner 6 12-20-2013 01:28 AM
Book Wildly Different Depending on Device northstar7 ePub 7 07-14-2012 10:25 AM
Bookmarks different depending on how book is opened nookleus Nook Color & Nook Tablet 1 01-24-2011 01:59 PM
Conditional CSS rules Jellby ePub 10 01-20-2009 08:32 AM


All times are GMT -4. The time now is 01:27 PM.


MobileRead.com is a privately owned, operated and funded community.