Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-29-2012, 11:24 AM   #1
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 697
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
WAF and select menu

Good afternoon!!!!

I'm fighting with the development of a WAF.

I get the "Unable to start application error" everytime I use one of two select menus (http://www.w3schools.com/tags/tag_select.asp).

This is the problem:

- I hit one of the select's option
- it runs a javascript
- I get the error

Here's the strange: if I place an alert box right at the end of all the operations, everything works fine! So it works like:

- I hit one of the select option
- it runs a javascript
- i get the alert box
- by hitting OK, it continue working fine

Any clue? It seems like it's a Kindle problem, not a WAF problem....
silver18 is offline   Reply With Quote
Old 03-29-2012, 11:40 AM   #2
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
Try inspecting Kindle logs first... most useful is run "showlog -f" and then try to do problematic actions. That way you'll see only fresh portion of the log.
JustAMan is offline   Reply With Quote
Old 03-29-2012, 11:57 AM   #3
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 697
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Here are two logs, first with crash, second with the alert box and, then, no crash!
I can see the select's option being choosed, than a remove_dead_app command...
Really can't understand why it doesn't work here and why it works if I place an alert box!
Attached Images
File Type: bmp crash.bmp (60.3 KB, 61 views)
File Type: bmp works.bmp (959.0 KB, 61 views)
silver18 is offline   Reply With Quote
Old 03-30-2012, 07:03 AM   #4
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 697
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
I changed everything but the problem is still there!
Now the app is really lighter than before, but it crashes anyway!

It seems to be a problem related to how the Kindle manages the select menu (in fact it's a menu, not a dropdown!!).
silver18 is offline   Reply With Quote
Old 05-06-2012, 12:19 PM   #5
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 697
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Here's how I solved the problem...Not elegant at all, but it works..
(actually a part of my ImageGallery WAF)

Code:
<form>
<select id="jumpToBook" name="selectedBookmark" onchange="jumpToBookmark(this.form.selectedBookmark);" style="position: fixed; left:20px; top:113px; z-index: 2;">
<option style="display:none;" value="" disabled="disabled">No bookmarks available!</option>
</select>
</form>
and here's the relevant part of the jumpToBookmark function:
Code:
var selpage;
var wheretobook;

function jumpToBookmark (wheretobook) {
selpage = wheretobook.options[wheretobook.selectedIndex].value;
}

I found that 5.1.0 firmware has lots of problems with select menus' style: so avoid fixed width and be careful with z-index (selects like to stay on top!).
silver18 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WAF texteditor (no thread hijack :p) aditya3098 Kindle Developer's Corner 2 03-16-2012 11:55 AM
A tiddlywiki as a waf extension for KindleTouch thomass Kindle Developer's Corner 3 03-15-2012 01:31 PM
WAF Website aditya3098 Kindle Developer's Corner 3 03-07-2012 11:53 AM
WAF Kalc for kindle touch aditya3098 Kindle Developer's Corner 8 02-28-2012 11:10 PM
main menu, section menu, css for calibre mobipocket output naisren Calibre 2 08-23-2010 11:42 PM


All times are GMT -4. The time now is 03:04 AM.


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