Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-22-2013, 01:21 AM   #1
devabe2005
Junior Member
devabe2005 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2013
Device: none
Is javascript will work in mobi file from kindle device

Hi,

Is javascript will work in mobi file from kindle device. What program i have to use to fetch current datetime from kindle in mobi file.
devabe2005 is offline   Reply With Quote
Old 11-22-2013, 01:41 AM   #2
icantbebothered
Penguin
icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.
 
icantbebothered's Avatar
 
Posts: 1,017
Karma: 4742434
Join Date: Jul 2012
Device: Kindle Touch 5.3.2.1
1. Which kindle is this?
2. Probably not. But you can use in a shell script:

lipc-set-prop com.lab126.pillow customDialog [details]

to display html with javascript in it.
icantbebothered is offline   Reply With Quote
Advert
Old 11-22-2013, 07:43 AM   #3
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
icantbebothered is right. You can't run javascript code in mobi books out-of-the-box.

Custom Dialog instead (made of javascript+html) works for your purpose.
You can find some examples looking through the code of the following apps: Kindle Menu, KindleGallery or KindleNotes.

Another way to use javascript, inside a book (instead of a custom dialog app), is using mesquite. I never did it, so you need to search for it on your own, using the forum search tools.

Here you can find some nice javascript system commands, working on both custom dialogs and mesquite apps:

https://www.mobileread.com/forums/sho...d.php?t=210280

P.S. all what I'm saying here regards only Kindle Touch and Kindle PW devices

Last edited by Aeris; 11-22-2013 at 07:47 AM.
Aeris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New javascript login doesn't work besianm Recipes 4 01-29-2013 11:03 AM
Development My Backup file won't work on another device cheyennedonna enTourage Archive 14 05-06-2011 02:21 PM
Javascript in mobi ebooks? avantman42 Kindle Developer's Corner 3 12-29-2010 12:57 PM
PRS-500 Javascript to Open a File quicksilver Sony Reader Dev Corner 1 01-15-2010 08:41 AM


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


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