Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2008

    Exclamation Crash after update ul list items with navigation keys


    I use the left and right keys to update a list items inside a UL list.
    I have the setNavigationEnabled = false.

    When the actual list have more items (li) than the next list and the selected item in the actual list is (n+1) or more (n= number of items in the next list) the WRT runtime crash whe I change the list using the left and right keys.

    left and right keys allow navigation changing selected item and I use the same keys for update the content.


    First list 4 items
    Second list 2 items

    The first list is displayed
    <li>item 1</li>
    <li>item 2</li>
    <li>item 3</li>
    <li>item 4</li>

    and the item 4 is highlighted

    press the right key, that trigger 2 things:

    -the WRT behavior that change the highlighted item from 4 to 3.
    -and the event that I trigger: update the list content, so now the list displayed is:

    <li>item 1</li>
    <li>item 2</li>

    Now, the list have 2 items, but the WRT try to select the third, since the third don´t exists, the WRT crash.

    any way to avoid that? (keeping the left and rigth keys) using non navigation keys don´t show this behavior.

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Rome, Italy

    Re: Crash after update ul list items with navigation keys

    Hi pablopoo,

    I noticed some crashes in similar situations, where DOM elements are added or modified just after user actions. On which devices/firmware did you notice this behavior?


Similar Threads

  1. Two-line setting & Multi-selection list setting items
    By azavor in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-06-04, 19:39
  2. list box and adding items dynamically
    By saaa_persistent in forum Symbian User Interface
    Replies: 5
    Last Post: 2009-03-30, 07:58
  3. sorting list items alphabetically
    By Nourayn in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-01-22, 07:50
  4. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum General Development Questions
    Replies: 1
    Last Post: 2008-08-21, 12:44
  5. Accepting multiselection list when no items are selected
    By jsheli2 in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-11-14, 04:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts