02-13-2020, 01:55 PM | #1 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Problem with setInterval
Hi,
I downloaded the 4.9.1 version of Calibre and I have a strange problem with Calibre Reader, EPUB3 and setInterval function in javascript: seems that Calibre reader fails to handle the setInterval function. The events linked to the interval happens in wrong time and does not stop when I use a clearInterval. Someone could verify this? Fabrizio Last edited by fbrzvnrnd; 02-13-2020 at 01:57 PM. Reason: wrong title |
02-13-2020, 02:03 PM | #2 | |
Wizard
Posts: 2,083
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie |
|
02-13-2020, 02:34 PM | #3 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
|
02-13-2020, 02:40 PM | #4 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
(If anyone wants to seriously answer the problem, they are welcome.)
|
02-13-2020, 08:01 PM | #5 |
Guru
Posts: 760
Karma: 2090886
Join Date: May 2019
Device: Kindle Oasis 1st Gen
|
With your response and attitude towards gbm, don't expect much help now.
|
02-13-2020, 08:05 PM | #6 |
Well trained by Cats
Posts: 29,836
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
02-13-2020, 08:14 PM | #7 |
null operator (he/him)
Posts: 20,598
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I would have thought bernie was big and ugly enough to take offence for himself.
@gbm, a smiley would have helped - unless you were suggesting EPUB3 does not support javascript in all seriousness. BR |
02-13-2020, 08:30 PM | #8 | |
Guru
Posts: 760
Karma: 2090886
Join Date: May 2019
Device: Kindle Oasis 1st Gen
|
Quote:
Last edited by Bookstooge; 02-13-2020 at 08:54 PM. Reason: added the winky face to show I wasn't trying to be disrespectful but to be ironic. Just in case that wasn't obvious... |
|
02-13-2020, 09:08 PM | #9 |
Bibliophagist
Posts: 35,665
Karma: 145624988
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I'll worry about calibre book viewer handling embedded Javascript after it starts handling fixed layout epub3. Considering the issues with QT that have been reported such as QT 5.12.1 using a minimum 1 sec resolution, I'm not holding my breath waiting for either.
Out of curiosity, how are you handling the fallbacks for non-scripted renderers? Last edited by DNSB; 02-13-2020 at 09:17 PM. |
02-14-2020, 01:08 AM | #10 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
I'm sorry, but I had written to highlight a Calibre problem thinking that it would be useful for the community to know about it. I found the answer not very contingent, self-referential and - in essence - not useful.
|
02-14-2020, 01:18 AM | #11 | ||
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Quote:
Quote:
Fabrizio |
||
02-14-2020, 02:22 AM | #12 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
As such, the reaction was basically an, "avoid Javascript because you don't know if it will work everywhere". And you left out a very important piece of information in your report. If you used a previous version of calibre and the viewer did support you Javascript, and the current version doesn't, then you should have said so. That would have gotten a very different reaction. And, I don't know the answer. I would expect the current view to support some Javascript, but, again, I don't know for sure as I don't think I have any books that contain Javascript. And I don't remember any recent discussion on it. |
|
02-14-2020, 03:07 AM | #13 | |||||
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Quote:
Quote:
Quote:
Quote:
Quote:
Thank you for the answer. Fabrizio |
|||||
02-14-2020, 05:16 AM | #14 | |
Resident Curmudgeon
Posts: 74,182
Karma: 129333564
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-14-2020, 05:26 AM | #15 | |
Resident Curmudgeon
Posts: 74,182
Karma: 129333564
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem! massive problem! | Persian | Calibre | 8 | 07-13-2011 04:39 PM |
PRS-500 battery problem, but the battery's not the problem | ZachC | Sony Reader | 7 | 01-11-2010 11:46 PM |
Calibré problem (may be XP problem) | Hildebrandt | Calibre | 3 | 07-23-2009 02:04 PM |