01-26-2014, 05:01 AM | #1 | ||
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2014
Device: none
|
Create a javascript quizz for Epub3 in Sigil
Hello, I'm trying to add a quizz form in javascript to an ebook created with Sigil (0.6.2).
Here is the code I used Quote:
Quote:
- When I choose an answer for the questions 1 or 2, clicking on the radio button send me to my cover page. - I can choose an answer for question 3 to 10 but when I click on the button btnAfficher to get my results, nohtings happens. I test my epub file with Firefox 26.0 Any ideas how to solve it ? |
||
01-26-2014, 06:46 AM | #2 |
Grand Sorcerer
Posts: 28,090
Karma: 201052868
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil is ePub2-only.
No scripting in ePub2. |
Advert | |
|
01-26-2014, 06:49 AM | #3 |
actually it is /var/log
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
|
Not really Sigil question.
As far as I know EPUB2 doesn't support javaScript. That said and not knowing javaScript: document.getElementById('resultat').value=point; seems to work in Sigil at least. |
01-26-2014, 10:04 AM | #4 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
That is a very old version of Sigil, since it is up to 0.7.4. The later versions don't thrash epub3 code so much.
You might be better off using Calibre's standalone editor, which is not focused on any particular version of epub. You will still have to test, as you are, in a browser, as neither Sigil nor calibre can test this sort of thing. Though if you are aimed for an Apple device, you really will need to test in an Apple device, since there is no reliable emulator even for all devices by a manufacturer. |
|
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 12:16 PM |
An epub3 version of Sigil ? | apulia03 | Sigil | 9 | 11-28-2012 02:07 AM |
Does Sigil filter/strip out any epub3 code when saving? | maestroc | Sigil | 9 | 10-25-2012 05:18 PM |
JAVASCRIPT support in ePub2/ePub3 | Raja1205 | ePub | 7 | 09-03-2012 07:48 AM |
epub3 Sigil Poetry(fixed layout) | Giggleton | Sigil | 7 | 04-04-2011 01:58 PM |