×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    14

    Nokia WRT widget crash on mobile.

    Hi,

    - My widget crashes on Nokia 5233 and Nokia 5230. But it works fine on Aptana studio emulator.

    - There is combo-box and a table.

    - When the item in the combo-box is changed,
    - the widget connects to the server to fetch data,
    - Deletes all the rows in the table except the header dynamically
    - and then again fills the table as per data received from the server dynamically.


    - The application crashes when the item in the combo-box is changed.

    - Please help me to figure out the problem. Is it redrawing problem, server connection problem or some performance issues?

  2. #2
    Registered User
    Join Date
    Jun 2008
    Posts
    14

    Re: Nokia WRT widget crash on mobile.

    Hi,
    Problem solved.

    - Deleting all rows from table takes more time than adding rows to the table.

    - We have to make sure all rows are deleted first properly and then rest of the things should happen..

    - Deleting rows for the table is performance critical.... After deleting all rows, a sleep(2000) solved the problem.

    Regards,
    Namit.

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Re: Nokia WRT widget crash on mobile.

    I don't understand if you are trying to add/remove the rows using the DOM, but if you are It is a bad idea to loop though the rows, I mean, for the aptana emulator it's easy because it has more resources (RAM, CPU, etc) than a real device. In order to use the DOM functions for adding/removing nodes I suggest that you replace all the content using the innerHTML properties. Example:

    HTML Code:
    <table id="myTable">
        <tbody>
        </tbody>
    </table>
    Code:
    function onDropdownSelected() {
        var tBody = document.getElementById('myTable').tBodies[0];
        var bodyHtml = '';
        for(var i = 0; i < 200; i++)
          bodyHtml += '<tr><td>This is the row: ' + i + '</td></tr>';
        tBody.innerHTML = bodyHtml;
    }

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    14

    Re: Nokia WRT widget crash on mobile.

    Hi dasaevc,

    Thanks for the reply,

    Yes.... will try this out and check the result to get the difference...

    Regards,
    Namit.

Similar Threads

  1. NOKIA WRT Widget Crash ( Nokia E71, E63 and other E-Series )
    By jadewits in forum Nokia Asha Web Apps
    Replies: 1
    Last Post: 2010-10-31, 09:05
  2. Replies: 2
    Last Post: 2010-10-19, 06:18
  3. Replies: 1
    Last Post: 2009-12-20, 05:28
  4. Replies: 0
    Last Post: 2009-12-08, 09:14
  5. Replies: 1
    Last Post: 2009-04-06, 15:51

Posting Permissions

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