09-01-2012, 07:01 AM | #1 |
Member
Posts: 18
Karma: 10
Join Date: Apr 2012
Device: none
|
JAVASCRIPT support in ePub2/ePub3
Hi,
I think that "iBooks" supports (limited support) JAVASCRIPT in ePub format files. My question is as follows: I have created a sample ePub with the following functionality: ------------------------------------------------------------------- By default, Image display shows partial portion of the original image (like thumbnail image) and displays the full and original image after clicking that image. ------------------------------------------------------------------- For the above sample, if first 2 pages contain images that works well in "iBooks" properly (i.e Original image displayed after clicking that thumbnail image) and the rest of the pages (which contains images) displays default image properly but after clicking that default image, it shows only white background without original image. Is it iBook's Issue or JAVASCRIPT issue? (All images displays properly in all browsers) Kindly advise how to solve this problem. Also advise if some other method available for the similar functionality. I have attached a sample epub for your reference and hope the favorable response. Thanks, Raja. S |
09-01-2012, 11:36 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Please be aware that javascript is not supported in ePUB2. iBooks might be able to work, but it is not a valid ePUB.
|
Advert | |
|
09-01-2012, 06:53 PM | #3 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
The pictures can simply be linked to and from without using Javascript. I seem to recall you can't use a picture to link with, but you could certainly link using a caption.
|
09-03-2012, 03:24 AM | #4 |
Member
Posts: 18
Karma: 10
Join Date: Apr 2012
Device: none
|
Hi Toxaris,
For your kind information, From 'iBookstoreAssetGuide 4.8' - at page. 28: --------------------------------------------- Note: iBooks supports scripting within version 2 EPUBs. iBooks does not support EPUB 3 at this time. --------------------------------------------- Thanks, Raja. S |
09-03-2012, 04:14 AM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Yes, like I said iBooks supports Javascript. However, javascript is NOT ePUB2 specification. So, if Javascript is in an ePUB2, it is not a valid ePUB.
Please be aware that if an ePUB works in iBooks it is not a garantuee that it is valid. Apple seriously crippled the ePUB format in iBooks. |
Advert | |
|
09-03-2012, 06:06 AM | #6 |
Member
Posts: 18
Karma: 10
Join Date: Apr 2012
Device: none
|
No, 'iBookstoreAssetGuide 4.8' - at page. 28" states that iBooks supports Javascript within ePUB2 version and it's a valid ePUB. However, javascript is NOT ePUB2 specification.
Last edited by Raja1205; 09-03-2012 at 06:17 AM. |
09-03-2012, 06:22 AM | #7 |
Grand Sorcerer
Posts: 27,900
Karma: 198131398
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Semantics.
|
09-03-2012, 06:48 AM | #8 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Including stuff that is not part of the specification can cause problems if someone tries to read the book in something other than an ibook. You could have extra blank spaces in the text, valid commands surrounding it that are ignored or other odd thing when you put in commands not part of the spec.
If it will always stay on ibooks, you can get away with it....until your boss tells you to make it accessible to a different device and you get to redo the whole thing! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there any android epub reader supporting epub3 with audio/video/javascript? | happycoding | Android Developer's Corner | 10 | 07-29-2014 11:16 AM |
Kobo Touch HTML/JavaScript support? | dgatwood | Kobo Reader | 8 | 01-31-2012 09:25 PM |
Mobipocket Javascript Support available on the kindle | TheStoepsel | Amazon Kindle | 3 | 06-18-2011 02:10 AM |
Which device will be the first to support EPUB3? | carmelra | General Discussions | 2 | 05-31-2011 01:12 AM |
Javascript support in PB302 browser ? | aruangra | PocketBook | 8 | 05-25-2010 07:11 PM |